<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Hitendra Verma</title>
	<atom:link href="https://www.emblogic.com/blog/author/hitendra-verma/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>structures in c</title>
		<link>https://www.emblogic.com/blog/03/structures-in-c/</link>
		<comments>https://www.emblogic.com/blog/03/structures-in-c/#comments</comments>
		<pubDate>Thu, 27 Mar 2014 11:48:40 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9560</guid>
		<description><![CDATA[Structures in c A structure is a collection of variables under a single name. These variables can be of different types, and each has a name which is used to select it from the structure. A structure is a convenient &#8230; <a href="https://www.emblogic.com/blog/03/structures-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Structures in c </p>
<p>A structure is a collection of variables under a single name. These variables can be of different types, and each has a name which is used to select it from the structure. A structure is a convenient way of grouping several pieces of related information together. </p>
<p>Further Uses of Structures<br />
 A structure is a good way of storing related data together.It is also a good way of representing certain types of information. Complex numbers in mathematics inhabit a two dimensional plane (stretching in real and imaginary directions). These could easily be represented here by </p>
<p>   struct complex<br />
	{<br />
          double real;<br />
          double imag;<br />
  	}<br />
doubles have been used for each field because their range is greater than floats and because the majority of mathematical library functions deal with doubles by default.<br />
Structures can also be used as<br />
1. Members of other structures.<br />
2. Arrays of structures are possible, and are a good way of storing lists of data with regular fields,<br />
    such as databases.<br />
3. Use to creat link list, trees and other connected structures.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/structures-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Program to insert,delete,edit node using structure pointer</title>
		<link>https://www.emblogic.com/blog/03/program-to-insertdeleteedit-node-using-structure-pointer/</link>
		<comments>https://www.emblogic.com/blog/03/program-to-insertdeleteedit-node-using-structure-pointer/#comments</comments>
		<pubDate>Thu, 27 Mar 2014 11:17:25 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9561</guid>
		<description><![CDATA[head 1.2; access; symbols; locks root:1.2; strict; comment @ * @; 1.2 date 2014.03.27.10.38.34; author root; state Exp; branches; next 1.1; 1.1 date 2014.03.26.10.31.39; author root; state Exp; branches; next ; desc @complete program without display fuction @ 1.2 log &#8230; <a href="https://www.emblogic.com/blog/03/program-to-insertdeleteedit-node-using-structure-pointer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>head	1.2;<br />
access;<br />
symbols;<br />
locks<br />
	root:1.2; strict;<br />
comment	@ * @;</p>
<p>1.2<br />
date	2014.03.27.10.38.34;	author root;	state Exp;<br />
branches;<br />
next	1.1;</p>
<p>1.1<br />
date	2014.03.26.10.31.39;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@complete program without display fuction<br />
@</p>
<p>1.2<br />
log<br />
@this is complete program<br />
@<br />
text</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-to-insertdeleteedit-node-using-structure-pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sum of two distances using struct and functions</title>
		<link>https://www.emblogic.com/blog/03/sum-of-two-distances-using-struct-and-functions/</link>
		<comments>https://www.emblogic.com/blog/03/sum-of-two-distances-using-struct-and-functions/#comments</comments>
		<pubDate>Tue, 25 Mar 2014 14:56:47 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9447</guid>
		<description><![CDATA[access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.25.14.53.42; author root; state Exp; branches; next ; desc @sum of two distances using struct and function @ 1.1 log @Initial revision @ text]]></description>
				<content:encoded><![CDATA[<p>access;<br />
symbols;<br />
locks<br />
	root:1.1; strict;<br />
comment	@ * @;</p>
<p>1.1<br />
date	2014.03.25.14.53.42;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@sum of two distances using struct and function<br />
@</p>
<p>1.1<br />
log<br />
@Initial revision<br />
@<br />
text</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/sum-of-two-distances-using-struct-and-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIFF BTWN gets(), fgets(), getc(), fgetc() , getchar(), ungetc().</title>
		<link>https://www.emblogic.com/blog/03/diff-btwn-gets-fgets-getc-fgetc-getchar-ungetc/</link>
		<comments>https://www.emblogic.com/blog/03/diff-btwn-gets-fgets-getc-fgetc-getchar-ungetc/#comments</comments>
		<pubDate>Tue, 25 Mar 2014 13:40:03 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9441</guid>
		<description><![CDATA[1. All these functions gets(),fgets(),getc(),fgetc(),getchar(),ungetc() &#8230;are function is declared in the header file stdio.h. 2.gets() :-it takes single argument.The argument must be a data item representing a string. gets() doesn&#8217;t allow to specify the length of the buffer to store &#8230; <a href="https://www.emblogic.com/blog/03/diff-btwn-gets-fgets-getc-fgetc-getchar-ungetc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>1. All these functions gets(),fgets(),getc(),fgetc(),getchar(),ungetc() &#8230;are function is declared in the header file stdio.h.</p>
<p>2.gets() :-it takes single argument.The argument must be a data item representing a string.<br />
           gets() doesn&#8217;t allow to specify the length of the buffer to store the string in.<br />
           This would allow user to keep entering data past the end of your buffer&#8230;<br />
           Never use gets().Because it is impossible to tell without<br />
           knowing the data in advance how many characters gets() will<br />
           read, and because gets() will continue to store characters<br />
           past the end of the buffer, it is  extremely  dangerous  to<br />
           use.<br />
    It  has  been  used to break computer security.  Use<br />
    fgets() instead.</p>
<p>3.fgets():-This function read bytes from stream into the array pointed to by s, until n-1 bytes are read,<br />
           or a  is read and transferred to s, or an end-of-file condition is encountered.</p>
<p>      RETURN VALUE :Both gets() and fgets() return a pointer to the string passed.<br />
                    and on failure of function gets() and fgets() returns NULL.</p>
<p>4.getc() :-returns a character from the specified file.</p>
<p>5.fgetc():-it&#8217;s equivalent to the same getc().Only the implementation of the two functions differs.</p>
<p>6.fgetc() and getc() are equivalent, except that getc may be implemented as a macro in some libraries.</p>
<p>7.getchar():- this is similiar to getc().it return a char form stdin.</p>
<p>8.All these above function getc(),fgetc(),getchar() return EOF on error.</p>
<p>9.ungetc() :-we know how getc() reads the next character from a file stream,this ungetc() is the opposite of getc()<br />
             it pushes a character back into the file stream so that it will show up again on the very next read from<br />
             the stream, as if you&#8217;d never gotten it from getc() in the first place.</p>
<p>            Now ,suppose you have a stream of data that you&#8217;re reading a character at a time, and you won&#8217;t know to<br />
            stop reading until you get a certain character, but you want to be able to read that character again<br />
            later. You can   read the character, see that it&#8217;s what you&#8217;re supposed to stop on, and then ungetc() it<br />
            so it&#8217;ll show up on the next read.<br />
     The standard only guarantees that you&#8217;ll be able to push back one character.<br />
     RETURN VALUE:On success, ungetc() returns the character you passed to it. On failure, it returns EOF.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/diff-btwn-gets-fgets-getc-fgetc-getchar-ungetc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program to read file from n position</title>
		<link>https://www.emblogic.com/blog/03/program-to-read-file-from-n-position/</link>
		<comments>https://www.emblogic.com/blog/03/program-to-read-file-from-n-position/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 09:51:33 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9153</guid>
		<description><![CDATA[head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.19.09.49.44; author root; state Exp; branches; next ; desc @program to read file from n pos @ 1.1 log @Initial revision @ text]]></description>
				<content:encoded><![CDATA[<p>head	1.1;<br />
access;<br />
symbols;<br />
locks; strict;<br />
comment	@ * @;</p>
<p>1.1<br />
date	2014.03.19.09.49.44;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@program to read file from n pos<br />
@</p>
<p>1.1<br />
log<br />
@Initial revision<br />
@<br />
text</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-to-read-file-from-n-position/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>reading file and writing into another using fgetc() and fputc()</title>
		<link>https://www.emblogic.com/blog/03/reading-file-and-writing-into-another-using-fgetc-and-fputc/</link>
		<comments>https://www.emblogic.com/blog/03/reading-file-and-writing-into-another-using-fgetc-and-fputc/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 09:18:45 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[file IO]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9099</guid>
		<description><![CDATA[head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.19.09.15.04; author root; state Exp; branches; next ; desc @reading form file and writing into another using fgetc() and fputc() @ 1.1 log @Initial revision @ text]]></description>
				<content:encoded><![CDATA[<p>head	1.1;<br />
access;<br />
symbols;<br />
locks; strict;<br />
comment	@ * @;</p>
<p>1.1<br />
date	2014.03.19.09.15.04;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@reading form file and writing into another using fgetc() and fputc()<br />
@</p>
<p>1.1<br />
log<br />
@Initial revision<br />
@<br />
text</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/reading-file-and-writing-into-another-using-fgetc-and-fputc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>started working with mdc(master array using function)</title>
		<link>https://www.emblogic.com/blog/03/started-working-with-mdcmaster-array-using-function/</link>
		<comments>https://www.emblogic.com/blog/03/started-working-with-mdcmaster-array-using-function/#comments</comments>
		<pubDate>Sat, 15 Mar 2014 16:14:33 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9090</guid>
		<description><![CDATA[head 1.2; access; symbols; locks root:1.2; strict; comment @ * @; 1.2 date 2014.03.15.16.06.03; author root; state Exp; branches; next 1.1; 1.1 date 2014.03.14.06.52.50; author root; state Exp; branches; next ; desc @this is the initial version,file created and open &#8230; <a href="https://www.emblogic.com/blog/03/started-working-with-mdcmaster-array-using-function/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>head	1.2;<br />
access;<br />
symbols;<br />
locks<br />
	root:1.2; strict;<br />
comment	@ * @;</p>
<p>1.2<br />
date	2014.03.15.16.06.03;	author root;	state Exp;<br />
branches;<br />
next	1.1;</p>
<p>1.1<br />
date	2014.03.14.06.52.50;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@this is the initial version,file created and open using function().<br />
@</p>
<p>1.2<br />
log<br />
@implemented masterarray using function<br />
@<br />
text<br />
@#include&#8221;header.h&#8221;</p>
<p>int main(int argc, char *argv[])<br />
{<br />
	int fd,ret;</p>
<p>	if(argc !=2)<br />
	{<br />
		printf(&#8220;insufficient arguments !!&#8221;);<br />
		goto out;<br />
	}<br />
	fd=openfile(argv[1]);<br />
	masterarray(fd);<br />
	return 0;<br />
	out:<br />
	return -1;</p>
<p>}<br />
int openfile(char *ipfile)<br />
{<br />
	int fd;<br />
	fd = open(ipfile,O_RDONLY);</p>
<p>	if(fd&lt;0)<br />
	{<br />
		perror(&quot;open&quot;);<br />
		goto out;<br />
	}<br />
	printf(&quot;file discriptor : %d&quot;,fd);<br />
	return fd;<br />
	out:<br />
	return 0;<br />
}<br />
int masterarray(int fd)<br />
{<br />
	int ret,i,ndc=0;<br />
	char ch;<br />
	char masterarray[128];<br />
	do<br />
	{<br />
		ret=read(fd,&amp;ch,1);<br />
	if(ret&lt;0)<br />
	{<br />
		perror(&quot;read&quot;);<br />
		close(fd);<br />
		goto out;<br />
	}<br />
	if(ch!=10)<br />
	{<br />
		masterarray[ndc]=ch;<br />
		ndc++;<br />
	}<br />
	}while(ch!=10);<br />
		for(i=0;i&lt;ndc;i++)<br />
		printf(&quot;read %d char ch=%c \n&quot;,ret,masterarray[i]);<br />
 out:<br />
 	return -1;<br />
	return 0;<br />
}<br />
@</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/started-working-with-mdcmaster-array-using-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program for bubblesort</title>
		<link>https://www.emblogic.com/blog/03/program-for-bubblesort/</link>
		<comments>https://www.emblogic.com/blog/03/program-for-bubblesort/#comments</comments>
		<pubDate>Fri, 14 Mar 2014 13:42:03 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9092</guid>
		<description><![CDATA[#include #define size 10 int main() { int arr[size]; int i,j,temp; printf(&#8220;Enter the array \n&#8221;); for(i=0;i&#60;size;i++) scanf(&#34;%d&#34;,&#38;arr[i]); printf(&#34;The array is :\n&#34;); for(i=0; i &#60; size; i++) printf(&#34;arr[%d]:%d\n&#34;,i,arr[i]); printf(&#34;String after bubble sort &#34;); for(j=0 ; j&#60;size ; j++) { for(i=0 ; &#8230; <a href="https://www.emblogic.com/blog/03/program-for-bubblesort/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>#include<br />
#define size 10<br />
int main()<br />
 {<br />
 	int arr[size];<br />
	int i,j,temp;<br />
  		printf(&#8220;Enter the array \n&#8221;);<br />
		for(i=0;i&lt;size;i++)<br />
			scanf(&quot;%d&quot;,&amp;arr[i]);</p>
<p>		printf(&quot;The array is :\n&quot;);<br />
		for(i=0; i &lt; size; i++)<br />
			printf(&quot;arr[%d]:%d\n&quot;,i,arr[i]);</p>
<p>		printf(&quot;String after bubble sort &quot;);<br />
		for(j=0 ; j&lt;size ; j++)<br />
		 {<br />
		  	for(i=0 ; i arr[i+1])<br />
				{<br />
				 	temp=arr[i+1];<br />
					arr[i+1]=arr[i];<br />
					arr[i]=temp;<br />
				}<br />
		}<br />
		for(i=0 ; i&lt;size ; i++)<br />
		printf(&quot;arr[%d] :%d\n &quot;,i,arr[i]);</p>
<p>return 0;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-for-bubblesort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Started working on &#8220;Multple data compression and encryption using iterative technique&#8221;</title>
		<link>https://www.emblogic.com/blog/03/started-working-on-multple-data-compression-and-encryption-using-iterative-technique/</link>
		<comments>https://www.emblogic.com/blog/03/started-working-on-multple-data-compression-and-encryption-using-iterative-technique/#comments</comments>
		<pubDate>Fri, 14 Mar 2014 13:15:44 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9048</guid>
		<description><![CDATA[head 1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.14.06.52.50; author root; state Exp; branches; next ; desc @this is the initial version,file created and open using function(). @ 1.1 log @Initial revision @ text @#include&#8221;header.h&#8221; &#8230; <a href="https://www.emblogic.com/blog/03/started-working-on-multple-data-compression-and-encryption-using-iterative-technique/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>head	1.1;<br />
access;<br />
symbols;<br />
locks<br />
	root:1.1; strict;<br />
comment	@ * @;</p>
<p>1.1<br />
date	2014.03.14.06.52.50;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@this is the initial version,file created and open using function().<br />
@</p>
<p>1.1<br />
log<br />
@Initial revision<br />
@<br />
text<br />
@#include&#8221;header.h&#8221;</p>
<p>int main(int argc, int *argv[])<br />
{<br />
	int fd,ret;<br />
	char ch;<br />
	if(argc !=2)<br />
	{<br />
		printf(&#8220;insufficient arguments&#8221;);<br />
		goto out;<br />
	}<br />
	fd=openfile(argv[1]);<br />
	do<br />
	{<br />
		ret=read(fd,&amp;ch,1);<br />
	if(ret&lt;0)<br />
	{<br />
		perror(&quot;read&quot;);<br />
		close(fd);<br />
		goto out;<br />
	}<br />
	if(ch!=10)<br />
	{<br />
		masterarray[ndc]=ch;<br />
		ndc++;<br />
	}<br />
	}while(ch!=10);<br />
		for(i=0;i&lt;ndc;i++)<br />
		printf(&quot;read %d char ch=%c \n&quot;,ret,masterarray[i]);<br />
		return 0;<br />
	out:<br />
	return -1;</p>
<p>}<br />
int openfile(char *ipfile)<br />
{<br />
	int fd;<br />
	fd = open(ipfile,O_RDONLY);<br />
	if(fd&lt;0)<br />
	{<br />
		perror(&quot;open&quot;);<br />
		goto out;<br />
	}<br />
	printf(&quot;file discriptor : %d&quot;,fd);<br />
	return fd;<br />
	out:<br />
	return 0;<br />
}<br />
@</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/started-working-on-multple-data-compression-and-encryption-using-iterative-technique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>create, open ,written and read file using functions()</title>
		<link>https://www.emblogic.com/blog/03/create-open-written-and-read-file-using-functions/</link>
		<comments>https://www.emblogic.com/blog/03/create-open-written-and-read-file-using-functions/#comments</comments>
		<pubDate>Thu, 13 Mar 2014 06:35:00 +0000</pubDate>
		<dc:creator><![CDATA[Hitendra Verma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9049</guid>
		<description><![CDATA[head    1.1; access; symbols; locks; strict; comment    @ * @; 1.1 date    2014.03.12.12.30.53;    author root;    state Exp; branches; next    ; desc @i have created,read and write a file using function. @ 1.1 log @Initial revision @ text]]></description>
				<content:encoded><![CDATA[<p>head    1.1;<br />
access;<br />
symbols;<br />
locks; strict;<br />
comment    @ * @;</p>
<p>1.1<br />
date    2014.03.12.12.30.53;    author root;    state Exp;<br />
branches;<br />
next    ;</p>
<p>desc<br />
@i have created,read and write a file using function.<br />
@</p>
<p>1.1<br />
log<br />
@Initial revision<br />
@<br />
text</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/create-open-written-and-read-file-using-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
