<?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; coolpriya2490</title>
	<atom:link href="https://www.emblogic.com/blog/author/coolpriya2490/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>Linux Filesystem Hierarchy.</title>
		<link>https://www.emblogic.com/blog/05/linux-filesystem-hierarchy/</link>
		<comments>https://www.emblogic.com/blog/05/linux-filesystem-hierarchy/#comments</comments>
		<pubDate>Fri, 30 May 2014 08:40:16 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10242</guid>
		<description><![CDATA[/bin: it usually contains the shells like bash, csh, etc&#8230;. and commonly used commands like cp, mv, rm, cat, ls. For this reason and in contrast to /usr/bin, the binaries in this directory are considered to be essential. The reason &#8230; <a href="https://www.emblogic.com/blog/05/linux-filesystem-hierarchy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>/bin: it usually contains the shells like bash, csh, etc&#8230;. and commonly used commands like cp, mv, rm, cat, ls. For this reason and in contrast to /usr/bin, the binaries in this directory are considered to be essential. The reason for this is that it contains essential system programs<br />
that must be available even if only the partition containing / is mounted. </p>
<p>/boot: This directory contains everything required for the boot process except for configuration files not needed at boot time and the map installer.Thus, the /boot directory stores data that is used before the kernel begins executing user?mode programs.</p>
<p>/dev : /dev is the location of special or device files.It is a very interesting directory that highlights one important aspect of the Linux filesystem ? everything is a file or a directory.<br />
/etc: This is the nerve center of your system, it contains all system related configuration files in here or in its sub?directories. A &#8220;configuration file&#8221; is defined as a local file used to control the operation of a program; it must be static and cannot be an executable binary.</p>
<p>/home: Linux is a multi?user environment so each user is also assigned a specific directory that is accessible only to them and the system administrator. These are the user home directories, which can be found under&#8217;/home/$USER&#8217; (~/).home directory contains personal configuration files, the so?called dot files. Personal configuration files are usually &#8216;hidden&#8217;, if we want to see them,we either have to turn on the appropriate option in our file manager or run ls with the ?a switch. If there is a<br />
conflict between personal and system wide configuration files, the settings in the personal file will prevail.</p>
<p>/initrd: initrd provides the capability to load a RAM disk by the boot loader. This RAM disk can then be mounted as the root file system and programs can be run from it. Afterwards, a new root file system can be mounted from a different device. The previous root (from initrd) is then moved to a directory and can be subsequently unmounted.initrd is mainly designed to allow system startup to occur in two phases, where the kernel comes up with a minimum set of compiled?in drivers, and where additional modules are loaded from initrd.</p>
<p>/lib: The /lib directory contains kernel modules and those shared library images needed to boot the system and run the commands in the root filesystem, ie. by binaries in /bin and /sbin.Libraries are readily identifiable through their filename extension of *.</p>
<p>/media: This directory contains subdirectories which are used as mount points for removeable media such as floppy disks, cdroms and zip disks.The motivation for the creation of this directory has been that historically there have been a number of other different places used to mount removeable<br />
media such as /cdrom, /mnt or /mnt/cdrom.</p>
<p>/mnt: This is a generic mount point under which you mount your filesystems or devices. Mounting is the process by which we make a filesystem available to the system. After mounting our files will be accessible under the mount?point. This directory usually contains mount points or sub?directories where we mount our floppy and our CD. we can also create additional mount?points here if we wish. Standard mount points would include /mnt/cdrom and /mnt/floppy. There is no limitation to creating a mount?point anywhere on our system. It should be noted that some distributions like Debian allocate /floppy and /cdrom as mount points while Redhat and Mandrake puts them in /mnt/floppy and /mnt/cdrom respectively.</p>
<p>/opt: This directory is reserved for all the software and add?on packages that are not part of the default installation. Any package to be installed here must locate its static files (ie. extra fonts, clipart, database files) must locate its static files in a separate /opt/&#8217;package&#8217; or /opt/&#8217;provider&#8217; directory tree.Generally, all data required to support a package on a system must be present within /opt/&#8217;package&#8217;, including files intended to be copied into /etc/opt/&#8217;package&#8217; and /var/opt/&#8217;package&#8217; as well as reserved directories in /opt.</p>
<p>/proc: /proc is very special in that it is also a virtual filesystem. It&#8217;s sometimes referred to as a process information pseudo?file system. It doesn&#8217;t contain &#8216;real&#8217; files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc). For this reason it can be regarded as a control and information centre for the kernel. In fact, quite a lot of system utilities are simply calls to files in this directory.<br />
 For example,&#8217;lsmod&#8217; is the same as &#8216;cat /proc/modules&#8217; while &#8216;lspci&#8217; is a synonym for &#8216;cat /proc/pci&#8217;.<br />
 By altering files located in this directory we can even read/change kernel parameters (sysctl) while the system is running.</p>
<p>/root: This is the home directory of the System Administrator, &#8216;root&#8217;. This may be somewhat confusing (&#8216;root on root&#8217;) but in former days, &#8216;/&#8217; was root&#8217;s home directory (hence the name of the Administrator account). To keep things tidier, &#8216;root&#8217; got his own home directory. </p>
<p>/sbin: Linux discriminates between &#8216;normal&#8217; executables and those used for system maintenance and/or<br />
administrative tasks. The latter reside either here or ? the less important ones ? in /usr/sbin. Locally installed system administration programs should be placed into /usr/local/sbin. Programs executed after /usr is known to be mounted (when there are no problems) are generally placed into /usr/sbin. This directory contains binaries that are essential to the working of the system. These include system administration as well as maintenance and hardware configuration program.we may find lilo, fdisk,init, ifconfig, etc&#8230;. here.</p>
<p>/usr: /usr usually contains by far the largest share of data on a system. Hence, this is one of the most important directories in the system as it contains all the user binaries, their documentation, libraries, header files, etc&#8230;. X and its supporting libraries can be found here. User programs like telnet, ftp, etc&#8230;. are also placed here. </p>
<p>/var: Contains variable data like system logging files, mail and printer spool directories, and transient and temporary files. Some portions of /var are not shareable between different systems. For instance, /var/log, /var/lock, and /var/run. Other portions may be shared, notably /var/mail, /var/cache/man, /var/cache/fonts, and /var/spool/news.&#8217;/var&#8217; contains variable data, i.e. files and<br />
directories the system must be able to write to during operation, whereas /usr should only contain static data.</p>
<p>/srv: /srv contains site?specific data which is served by this system. This main purpose of specifying this is so that users may find the location of the data files for particular service, and so that services which require a single tree for readonly data, writable datand scripts can be reasonably placed. Data that is only of interest to a specific user should go in that users&#8217;<br />
home directory.</p>
<p>/tmp: This directory contains mostly files that are required temporarily. Many programs use this to create lock files and for temporary storage of data. Many these files are important for currently running programs. and deleting them may result in a system crash. Usually it won&#8217;t contain more than a few KB anyway. On most systems, this directory is cleared out at boot or at shutdown by the local system</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/05/linux-filesystem-hierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ipc using pipes( with two requesting and processing client)</title>
		<link>https://www.emblogic.com/blog/05/ipc-using-pipes-with-two-requesting-and-processing-client/</link>
		<comments>https://www.emblogic.com/blog/05/ipc-using-pipes-with-two-requesting-and-processing-client/#comments</comments>
		<pubDate>Tue, 13 May 2014 07:07:25 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10066</guid>
		<description><![CDATA[RCS file: req.c,v Working file: req.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is the requesting program in which i am adding two value. the value sent &#8230; <a href="https://www.emblogic.com/blog/05/ipc-using-pipes-with-two-requesting-and-processing-client/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: req.c,v<br />
Working file: req.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the requesting program in which i am adding two value.<br />
the value sent by the request is read by the server.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/13 06:50:30;  author: priya;  state: Exp;<br />
Initial revision</p>
<p>RCS file: req1.c,v<br />
Working file: req1.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the requesting program in which i am subtracting two values.<br />
the value given by requesting is read by server.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/13 06:52:47;  author: priya;  state: Exp;<br />
Initial revision</p>
<p>RCS file: server.c,v<br />
Working file: server.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is program for server which accepts all the request sent by requesting client and forward the request to the processing client.<br />
in this i have created two pipes for receiving and sending request respectively .<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/13 06:54:25;  author: priya;  state: Exp;<br />
Initial revision<br />
=============================================================================</p>
<p>RCS file: proc.c,v<br />
Working file: proc.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the program for processing client in which i have added two values.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/13 06:58:28;  author: priya;  state: Exp;<br />
Initial revision<br />
=============================================================================</p>
<p>RCS file: proc1.c,v<br />
Working file: proc1.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the program for processing client in which i have subtracted two values.<br />
in this processing of request sent by server is done.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/13 07:00:10;  author: priya;  state: Exp;<br />
Initial revision<br />
=============================================================================</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/05/ipc-using-pipes-with-two-requesting-and-processing-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>//program using wait statement.//</title>
		<link>https://www.emblogic.com/blog/05/program-using-wait-statement/</link>
		<comments>https://www.emblogic.com/blog/05/program-using-wait-statement/#comments</comments>
		<pubDate>Mon, 12 May 2014 07:01:33 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10008</guid>
		<description><![CDATA[RCS file: ipc1.c,v Working file: ipc1.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is program in which i have created child using fork and printed the pid &#8230; <a href="https://www.emblogic.com/blog/05/program-using-wait-statement/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: ipc1.c,v<br />
Working file: ipc1.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is program in which i have created child using fork and printed the pid of parent and child.<br />
in this i have also used wait statement.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/12 07:00:20;  author: priya;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/05/program-using-wait-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program of signal.</title>
		<link>https://www.emblogic.com/blog/05/program-of-signal/</link>
		<comments>https://www.emblogic.com/blog/05/program-of-signal/#comments</comments>
		<pubDate>Mon, 12 May 2014 06:56:01 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10006</guid>
		<description><![CDATA[RCS file: signal1.c,v Working file: signal1.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is simple program of signal in which i have used SIGINT and SIG_DLF. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8230; <a href="https://www.emblogic.com/blog/05/program-of-signal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: signal1.c,v<br />
Working file: signal1.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is simple program of signal in which i have used SIGINT and SIG_DLF.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/12 06:55:15;  author: priya;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/05/program-of-signal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>signals</title>
		<link>https://www.emblogic.com/blog/05/signals-4/</link>
		<comments>https://www.emblogic.com/blog/05/signals-4/#comments</comments>
		<pubDate>Mon, 12 May 2014 06:51:44 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10002</guid>
		<description><![CDATA[RCS file: signal.c,v Working file: signal.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: This of program of signal to find signal and use of SIGINT. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- revision 1.1 &#8230; <a href="https://www.emblogic.com/blog/05/signals-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: signal.c,v<br />
Working file: signal.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
This of program of signal to find signal and use of SIGINT.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/05/12 06:49:58;  author: priya;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/05/signals-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program of implementation of stacks.</title>
		<link>https://www.emblogic.com/blog/03/program-of-implementation-of-stacks/</link>
		<comments>https://www.emblogic.com/blog/03/program-of-implementation-of-stacks/#comments</comments>
		<pubDate>Sat, 29 Mar 2014 11:09:20 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9656</guid>
		<description><![CDATA[RCS file: fun.c,v Working file: fun.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is the program of implementation of stacks using pointer. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- revision 1.1 date: 2014/03/29 &#8230; <a href="https://www.emblogic.com/blog/03/program-of-implementation-of-stacks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: fun.c,v<br />
Working file: fun.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the program of implementation of stacks using pointer.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/03/29 11:06:26;  author: root;  state: Exp;<br />
Initial revision<br />
=============================================================================</p>
<p>RCS file: main.c,v<br />
Working file: main.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/03/29 11:06:26;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-of-implementation-of-stacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program of reversing link list.</title>
		<link>https://www.emblogic.com/blog/03/program-of-reversing-link-list/</link>
		<comments>https://www.emblogic.com/blog/03/program-of-reversing-link-list/#comments</comments>
		<pubDate>Sat, 29 Mar 2014 11:05:45 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9654</guid>
		<description><![CDATA[rlog: RCS/vim,v: No such file or directory RCS file: llrev.c,v Working file: llrev.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is the program of reversing link list &#8230; <a href="https://www.emblogic.com/blog/03/program-of-reversing-link-list/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>rlog: RCS/vim,v: No such file or directory</p>
<p>RCS file: llrev.c,v<br />
Working file: llrev.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the program of reversing link list using three pointer.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/03/29 11:02:35;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-of-reversing-link-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program of reversing link list using three pointer.</title>
		<link>https://www.emblogic.com/blog/03/program-of-reversing-link-list-using-three-pointer/</link>
		<comments>https://www.emblogic.com/blog/03/program-of-reversing-link-list-using-three-pointer/#comments</comments>
		<pubDate>Fri, 28 Mar 2014 10:34:32 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9604</guid>
		<description><![CDATA[rlog: RCS/vim,v: No such file or directory RCS file: llrev.c,v Working file: llrev.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: this is the program of structure in which &#8230; <a href="https://www.emblogic.com/blog/03/program-of-reversing-link-list-using-three-pointer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>rlog: RCS/vim,v: No such file or directory</p>
<p>RCS file: llrev.c,v<br />
Working file: llrev.c<br />
head: 1.2<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 2;	selected revisions: 2<br />
description:<br />
this is the program of structure in which i have entered data and link each data to node.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.2<br />
date: 2014/03/28 10:31:36;  author: root;  state: Exp;  lines: +74 -22<br />
this is the program ofreversing the link list using three pointer.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/03/28 08:07:54;  author: root;  state: Exp;<br />
Initial revision<br />
============================================</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-of-reversing-link-list-using-three-pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>functions and command line arguments.</title>
		<link>https://www.emblogic.com/blog/03/functions-and-command-line-arguments/</link>
		<comments>https://www.emblogic.com/blog/03/functions-and-command-line-arguments/#comments</comments>
		<pubDate>Tue, 25 Mar 2014 09:13:29 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9373</guid>
		<description><![CDATA[Functions : Functions are easy to use; they allow complicated programs to be parcelled up into small blocks, each of which is easier to write, read, and maintain. We have already encountered the function main and made use of I/O &#8230; <a href="https://www.emblogic.com/blog/03/functions-and-command-line-arguments/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p> Functions :<br />
Functions are easy to use; they allow complicated programs to be parcelled up into small blocks, each of which is easier to write, read, and maintain. We have already encountered the function main and made use of I/O and mathematical routines from the standard libraries. Now let&#8217;s look at some other library functions, and how to write and use our own.</p>
<p>Calling a Function:</p>
<p>The call to a function in C simply entails referencing its name with the appropriate arguments. The C compiler checks for compatibility between the arguments in the calling sequence and the definition of the function.</p>
<p>Library functions are generally not available to us in source form. Argument type checking is accomplished through the use of header files (like stdio.h) which contain all the necessary information. For example, as we saw earlier, in order to use the standard mathematical library you must include math.h via the statement</p>
<p> Command-line arguments:</p>
<p>It is standard practice in UNIX for information to be passed from the command line directly into a program through the use of one or more command-line arguments, or switches. Switches are typically used to modify the behavior of a program, or to set the values of some internal parameters. You have already encountered several of these&#8211;for example, the &#8220;ls&#8221; command lists the files in your current directory, but when the switch -l is added, &#8220;ls -l&#8221; produces a so-called &#8220;long&#8221; listing instead. Similarly, &#8220;ls -l -a&#8221; produces a long listing, including &#8220;hidden&#8221; files, the command &#8220;tail -20&#8243; prints out the last 20 lines of a file (instead of the default 10), and so on.</p>
<p>Conceptually, switches behave very much like arguments to functions within C, and they are passed to a C program from the operating system in precisely the same way as arguments are passed between functions. Up to now, the main() statements in our programs have had nothing between the parentheses. However, UNIX actually makes available to the program (whether the programmer chooses to use the information or not) two arguments to main: an array of character strings, conventionally called argv, and an integer, usually called argc, which specifies the number of strings in that array. The full statement of the first line of the program is</p>
<p>    main(int argc, char** argv)</p>
<p>(The syntax char** argv declares argv to be a pointer to a pointer to a character, that is, a pointer to a character array (a character string)&#8211;in other words, an array of character strings. You could also write this as char* argv[]. Don&#8217;t worry too much about the details of the syntax, however&#8211;the use of the array will be made clearer below.)</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/functions-and-command-line-arguments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arrays</title>
		<link>https://www.emblogic.com/blog/03/arrays/</link>
		<comments>https://www.emblogic.com/blog/03/arrays/#comments</comments>
		<pubDate>Tue, 25 Mar 2014 08:19:55 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9352</guid>
		<description><![CDATA[An array is a collection of data items, all of the same type, accessed using a common name. A one-dimensional array is like a list; A two dimensional array is like a table; The C language places no limits on &#8230; <a href="https://www.emblogic.com/blog/03/arrays/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>    An array is a collection of data items, all of the same type, accessed using a common name.<br />
    A one-dimensional array is like a list;  A two dimensional array is like a table;  The C language places no limits on the number of dimensions in an array, though specific implementations may.<br />
    Some texts refer to one-dimensional arrays as vectors, two-dimensional arrays as matrices, and use the general term arrays when the number of dimensions is unspecified or unimportant.</p>
<p>Declaring Arrays:</p>
<p>    Array variables are declared identically to variables of their data type, except that the variable name is followed by one pair of square [ ] brackets for each dimension of the array.<br />
    Uninitialized arrays must have the dimensions of their rows, columns, etc. listed within the square brackets.<br />
    Dimensions used when declaring arrays in C must be positive integral constants or constant expressions. ( Space is allocated only once, at the time the array is declared. The array does NOT change sizes later if the variable used to declare it changes. )</p>
<p>    Examples:</p>
<p>            int i, j, intArray[ 10 ], number;<br />
            float floatArray[ 1000 ];<br />
            int tableArray[ 3 ][ 5 ];      /* 3 rows by 5 columns </p>
<p>Initializing Arrays:</p>
<p>    Arrays may be initialized when they are declared, just as any other variables.<br />
    Place the initialization data in curly {} braces following the equals sign.  Note the use of commas in the examples below.<br />
    An array may be partially initialized, by providing fewer data items than the size of the array.  The remaining array elements will be automatically initialized to zero.<br />
    If an array is to be completely initialized, the dimension of the array is not required.  The compiler will automatically size the array to fit the initialized data.<br />
    Examples:</p>
<p>            int i =  5, intArray[ 6 ] = { 1, 2, 3, 4, 5, 6 }, k;<br />
            float sum  = 0.0f, floatArray[ 100 ] = { 1.0f, 5.0f, 20.0f };<br />
            double  piFractions[ ] = { 3.141592654, 1.570796327, 0.785398163 };</p>
<p>    Designated assignment:<br />
        This method can be mixed in with traditional iniitalization<br />
        For example:</p>
<p>        int numbers[ 100 ] = { 1, 2, 3, [10] = 10, 11, 12, [60] = 50, [42] = 420 }; </p>
<p>            In this example,the first three elements are initialized to 1, 2, and 3 respectively.<br />
            Then element 10 ( the 11th element ) is initialized to 10<br />
            The next two elements ( 12th and 13th ) are initialized to 11 and 12 respectively.<br />
            Element number 60 ( the 61st ) is initialized to 50, and number 42 ( the 43rd ) to 420.<br />
                ( Note that the designated initializers do not need to appear in order. )<br />
            As with traditional methods, all uninitialized values are set to zero.<br />
            If the size of the array is not given, then the largest initialized position determines the size of the array.</p>
<p>Using Arrays:</p>
<p>    Elements of an array are accessed by specifying the index ( offset ) of the desired element within square [ ] brackets after the array name.<br />
    Array subscripts must be of integer type.  ( int, long int, char, etc.<br />
    Arrays are commonly used in conjunction with loops, in order to perform the same calculations on all ( or some part ) of  the data items in the array.</p>
<p>Sample Programs Using 1-D Arrays</p>
<p>    The first sample program uses loops and arrays to calculate the first twenty Fibonacci numbers.  Fibonacci numbers are used to determine the sample points used in certain optimization methods.</p>
<p>            /* Program to calculate the first 20 Fibonacci numbers. */</p>
<p>            #include<br />
            #include  </p>
<p>            int main( void ) {</p>
<p>                int i, fibonacci[ 20 ];</p>
<p>                fibonacci[ 0 ] = 0;<br />
                fibonacci[ 1 ] = 1;</p>
<p>                for( i = 2; i &lt; 20; i++ )<br />
                    fibonacci[ i ] = fibonacci[ i - 2 ] + fibonacci[ i - 1 ];</p>
<p>                for( i = 0; i &lt; 20; i++ )<br />
                    printf( &quot;Fibonacci[ %d ] = %f\n&quot;, i, fibonacci[ i ] );</p>
<p>            } /* End of sample program to calculate Fibonacci numbers */  </p>
<p>    Exercise: What is the output of the following program:</p>
<p>            /* Sample Program Using Arrays */</p>
<p>            #include<br />
            #include  </p>
<p>            int main( void ) {</p>
<p>                int numbers[ 10 ];<br />
                int i, index = 2;</p>
<p>                for( i = 0; i &lt; 10; i++ )<br />
                    numbers[ i ] = i * 10;</p>
<p>                numbers[ 8 ] = 25;<br />
                numbers[ 5 ] = numbers[ 9 ] / 3;<br />
                numbers[ 4 ] += numbers[ 2 ] / numbers[ 1 ];<br />
                numbers[ index ] = 5;<br />
                ++numbers[ index ];<br />
                numbers[ numbers[ index++ ] ] = 100;<br />
                numbers[ index ] = numbers[ numbers[ index + 1 ] / 7 ]&#8211;;</p>
<p>                for( index = 0; index &lt; 10; index++ )<br />
                    printf( &quot;numbers[ %d ] = %d\n&quot; index, numbers[ index ] );</p>
<p>            } /* End of second sample program </p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program to write contents in uppercase and write the contents in output file.</title>
		<link>https://www.emblogic.com/blog/03/program-to-write-contents-in-uppercase-and-write-the-contents-in-output-file/</link>
		<comments>https://www.emblogic.com/blog/03/program-to-write-contents-in-uppercase-and-write-the-contents-in-output-file/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 10:15:44 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9159</guid>
		<description><![CDATA[initial revision: 1.1 done [root@emblogic priya]# rlog vim string4.c rlog: RCS/vim,v: No such file or directory RCS file: string4.c,v Working file: string4.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 &#8230; <a href="https://www.emblogic.com/blog/03/program-to-write-contents-in-uppercase-and-write-the-contents-in-output-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>initial revision: 1.1<br />
done<br />
[root@emblogic priya]# rlog vim string4.c<br />
rlog: RCS/vim,v: No such file or directory</p>
<p>RCS file: string4.c,v<br />
Working file: string4.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the program to convert the contents in uppercase and write contents in output file.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/03/20 03:59:05;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-to-write-contents-in-uppercase-and-write-the-contents-in-output-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program to compare two text file.</title>
		<link>https://www.emblogic.com/blog/03/program-to-compare-two-text-file/</link>
		<comments>https://www.emblogic.com/blog/03/program-to-compare-two-text-file/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 09:54:39 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9156</guid>
		<description><![CDATA[RCS file: string3.c,v Working file: string3.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is the program to compare two text file. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- revision 1.1 date: 2014/03/20 03:39:17; &#8230; <a href="https://www.emblogic.com/blog/03/program-to-compare-two-text-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>RCS file: string3.c,v<br />
Working file: string3.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1;	selected revisions: 1<br />
description:<br />
this is the program to compare two text file.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/03/20 03:39:17;  author: root;  state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-to-compare-two-text-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>this is the program to read the last n character from the file using fgetc,ftell.</title>
		<link>https://www.emblogic.com/blog/03/this-is-the-program-to-read-the-last-n-character-from-the-file-using-fgetcftell/</link>
		<comments>https://www.emblogic.com/blog/03/this-is-the-program-to-read-the-last-n-character-from-the-file-using-fgetcftell/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 09:20:27 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9140</guid>
		<description><![CDATA[head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.20.02.57.15; author root; state Exp; branches; next ; desc @this is the program in which i have first opened the file. after opening the file , i have &#8230; <a href="https://www.emblogic.com/blog/03/this-is-the-program-to-read-the-last-n-character-from-the-file-using-fgetcftell/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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.20.02.57.15;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@this is the program in which i have first opened the file.<br />
after opening the file , i have moved the file pointer to the last location using fseek function passing SEEK_END constant.<br />
i have used ftell to know the position of file pointer .after that i have read last character from file.<br />
@</p>
<p>1.1<br />
log<br />
@Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/this-is-the-program-to-read-the-last-n-character-from-the-file-using-fgetcftell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program of string.</title>
		<link>https://www.emblogic.com/blog/03/program-of-string/</link>
		<comments>https://www.emblogic.com/blog/03/program-of-string/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 08:20:37 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9126</guid>
		<description><![CDATA[head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.20.02.00.48; author root; state Exp; branches; next ; desc @this is the program to copy contents of one file into another using fputc. @ 1.1 log @Initial revision &#8230; <a href="https://www.emblogic.com/blog/03/program-of-string/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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.20.02.00.48;	author root;	state Exp;<br />
branches;<br />
next	;</p>
<p>desc<br />
@this is the program to copy contents of one file into another using fputc.<br />
@</p>
<p>1.1<br />
log<br />
@Initial revision<br />
@<br />
text<br />
@#include<br />
#include<br />
int main()<br />
{<br />
	FILE *fp, *fp1;<br />
	char ch,ch1;<br />
	fp=fopen(&#8220;/home/priya/pp1.c&#8221;,&#8221;r&#8221;);<br />
	fp1=fopen(&#8220;/home/priya/palak1.c&#8221;,&#8221;w&#8221;);<br />
	do<br />
	{<br />
        ch=fgetc(fp);<br />
	ch1=fputc(ch,fp1);</p>
<p>        }<br />
	while(ch !=10);<br />
//	printf(&#8221; the string is ch is %c&#8221;,ch);<br />
//	printf(&#8220;the string is ch is %c&#8221;,ch1);<br />
	return 0;<br />
}	</p>
<p>@</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/program-of-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c program using array and pointer.</title>
		<link>https://www.emblogic.com/blog/03/c-program-using-array-and-pointer/</link>
		<comments>https://www.emblogic.com/blog/03/c-program-using-array-and-pointer/#comments</comments>
		<pubDate>Fri, 14 Mar 2014 09:18:47 +0000</pubDate>
		<dc:creator><![CDATA[coolpriya2490]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=8909</guid>
		<description><![CDATA[elements using pointer. &#62;&#62; . initial revision: 1.1 done [root@localhost priya]# rlog avgptr.c,v RCS file: avgptr.c,v Working file: avgptr.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is &#8230; <a href="https://www.emblogic.com/blog/03/c-program-using-array-and-pointer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>elements using pointer.<br />
&gt;&gt; .<br />
initial revision: 1.1<br />
done<br />
[root@localhost priya]# rlog avgptr.c,v</p>
<p>RCS file: avgptr.c,v<br />
Working file: avgptr.c<br />
head: 1.1<br />
branch:<br />
locks: strict<br />
access list:<br />
symbolic names:<br />
keyword substitution: kv<br />
total revisions: 1; selected revisions: 1<br />
description:<br />
this is a program in which we have calculated the average of array elemsing pointer.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
revision 1.1<br />
date: 2014/03/06 11:14:55; author: root; state: Exp;<br />
Initial revision</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/c-program-using-array-and-pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
