<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Simplest Codings</title><link>http://simplestcodings.blogspot.com/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SimplestCodings" /><description>This site provides the basic codes in c and c++ in a very simple way.</description><language>en</language><managingEditor>noreply@blogger.com (Varun Gupta)</managingEditor><lastBuildDate>Sat, 07 Jan 2012 06:18:47 PST</lastBuildDate><generator>Blogger</generator><atom:id xmlns:atom="http://www.w3.org/2005/Atom">tag:blogger.com,1999:blog-3459284654925679524</atom:id><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">59</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SimplestCodings" /><feedburner:info uri="simplestcodings" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>12</geo:lat><geo:long>77</geo:long><item><title>Serialization using Google protobuf</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/4No_P4FJ9oY/serialization-using-google-protobuf.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Sun, 28 Nov 2010 02:35:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-271216525921643791</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-11-28T16:05:05.414+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><description>Protocol buffers (that's what protobuf means :)) are a means to serialize structured data. Now you may be wondering what this 'serialize' means. 



To be brief : Serialization is a process of...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/iwEM7XktuNNI7A5YbW53PaaVWMA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iwEM7XktuNNI7A5YbW53PaaVWMA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/iwEM7XktuNNI7A5YbW53PaaVWMA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iwEM7XktuNNI7A5YbW53PaaVWMA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=4No_P4FJ9oY:9exHbmdPS2U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/11/serialization-using-google-protobuf.html</feedburner:origLink></item><item><title>Xdotool : Fake Keyboard/Mouse Input Tool</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/pAQY9r-Ehc0/xdotool-fake-keyboardmouse-input-tool.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Wed, 24 Nov 2010 00:12:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-1043076797488613474</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-11-24T13:42:15.767+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><description>xdotool is a fake keyboard/mouse input tool for linux which is freely available on the internet.

So whatever you keep typing on the keyboard or kept clicking using the mouse , you can do it now with...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pTCXsZ7Nea179_KbISOgmB7jjio/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pTCXsZ7Nea179_KbISOgmB7jjio/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pTCXsZ7Nea179_KbISOgmB7jjio/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pTCXsZ7Nea179_KbISOgmB7jjio/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=pAQY9r-Ehc0:SJXEMrGxda8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/11/xdotool-fake-keyboardmouse-input-tool.html</feedburner:origLink></item><item><title>Create your own packet sniffer in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/a6qcniH2xjM/create-your-own-packet-sniffer-in-c.html</link><category>Networking</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Sat, 23 Oct 2010 03:09:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-3912277517156357629</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-23T21:26:49.866+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>A simple implementation of a packet sniffer in C on linux platform using the libpcap library. This packet sniffer currently sniffs IP , TCP , ICMP and UDP packets. It can be modified to any protocol...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/De0vWH3ukavWXrBLn4Uc5FMFdjU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/De0vWH3ukavWXrBLn4Uc5FMFdjU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/De0vWH3ukavWXrBLn4Uc5FMFdjU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/De0vWH3ukavWXrBLn4Uc5FMFdjU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=a6qcniH2xjM:nLJwNN3vrDE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/create-your-own-packet-sniffer-in-c.html</feedburner:origLink></item><item><title>Vector Write in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/fcvlbjEJSSI/vector-write-in-c.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Mon, 18 Oct 2010 23:47:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-2734109566160910711</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-19T12:17:26.117+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Simple implementation of vector writes in unix. This example uses writev system call to write into a file. The writev call enables you to write multiple discontiguous regions of memory to a file...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HXMhkN68jW35qEm8IuReO9AWQVU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HXMhkN68jW35qEm8IuReO9AWQVU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HXMhkN68jW35qEm8IuReO9AWQVU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HXMhkN68jW35qEm8IuReO9AWQVU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=fcvlbjEJSSI:TN-qcX2RwX8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/vector-write-in-c.html</feedburner:origLink></item><item><title>IPC Memory Map implementation in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/GT-KnNXiBg0/ipc-memory-map-implementation-in-c.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Tue, 12 Oct 2010 22:13:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-4778509727315892229</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-13T10:43:30.099+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Using memory mapped file two processes can both open the same file and both read and write from it, thus sharing the information.It is easier to map a section of the file to memory, and get a pointer...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yqlFr-wAvhYClB7WJYnSvw8-gEU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yqlFr-wAvhYClB7WJYnSvw8-gEU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yqlFr-wAvhYClB7WJYnSvw8-gEU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yqlFr-wAvhYClB7WJYnSvw8-gEU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=GT-KnNXiBg0:5ucvTgP3-XM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/ipc-memory-map-implementation-in-c.html</feedburner:origLink></item><item><title>How to create Static and Shared Libraries out of your source</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/OKhlxCqoF50/how-to-create-static-and-shared.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Tue, 12 Oct 2010 04:52:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-5114784138540845781</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-12T17:26:01.504+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Here is a simple method to create a static as well as shared or dynamic library in C.

 

There are two ways of creating libraries 



1. Static Libraries



2. Shared or dynamic...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tgzS1Tr_RTS6yGl9Ykt2NDGwxsY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tgzS1Tr_RTS6yGl9Ykt2NDGwxsY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tgzS1Tr_RTS6yGl9Ykt2NDGwxsY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tgzS1Tr_RTS6yGl9Ykt2NDGwxsY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=OKhlxCqoF50:rQxXs8pGSsc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/how-to-create-static-and-shared.html</feedburner:origLink></item><item><title>IPC Semaphores implementation in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/J47TdHiAazE/ipc-semaphores-implementation-in-c.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Mon, 11 Oct 2010 23:45:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-7118626209000698168</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-12T12:25:26.332+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Here is a simple example to show how the IPC semaphores work.

In this example two processes (parent and child) are communicating between each other using semaphores.



Each process access the same...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bIkqYv4CeATcKZxgvlS9UhRLtp4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bIkqYv4CeATcKZxgvlS9UhRLtp4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bIkqYv4CeATcKZxgvlS9UhRLtp4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bIkqYv4CeATcKZxgvlS9UhRLtp4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=J47TdHiAazE:5JHefHorQ9s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/ipc-semaphores-implementation-in-c.html</feedburner:origLink></item><item><title>TCP header format</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/r789pqVjz54/tcp-header-format.html</link><category>Packet Formats</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Fri, 08 Oct 2010 03:57:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-8391893561654798338</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-11T14:48:14.284+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>TCP segments are sent as internet datagrams.  The Internet Protocol header carries several information fields, including the source and destination host addresses.  A TCP header follows the internet...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5rg-qqXSWExDcXCA6zfTEHMce30/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5rg-qqXSWExDcXCA6zfTEHMce30/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5rg-qqXSWExDcXCA6zfTEHMce30/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5rg-qqXSWExDcXCA6zfTEHMce30/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=r789pqVjz54:E9HXzEB7Z2o:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/tcp-header-format.html</feedburner:origLink></item><item><title>SCTP Packet Format</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/wwYTtSwJrmI/sctp-packet-format.html</link><category>Packet Formats</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Fri, 08 Oct 2010 02:21:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-3013247756891094556</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-08T16:58:59.342+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>&amp;nbsp;&amp;nbsp;&amp;nbsp; The SCTP packet format is shown below:&amp;nbsp;An SCTP packet is composed of a common header and chunks. A chunk contains either control information or user data.
&amp;nbsp;Multiple...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CcFhrHiru8qNaFfdQHZTMSwfZfU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CcFhrHiru8qNaFfdQHZTMSwfZfU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CcFhrHiru8qNaFfdQHZTMSwfZfU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CcFhrHiru8qNaFfdQHZTMSwfZfU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=wwYTtSwJrmI:472Rz3P2L8U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/sctp-packet-format.html</feedburner:origLink></item><item><title>Check the access of a file</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/uHkSg5N6JzM/check-access-of-file.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Thu, 07 Oct 2010 00:22:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-8468740065589753210</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-07T12:52:19.674+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This is a simple program to check the access of a file (whether it is readable , writable or executable or not).

It uses the standard linux system call access for this purpose.



//Filename :...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/gBry4c_frvBqff44zs1rJ_uSPds/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gBry4c_frvBqff44zs1rJ_uSPds/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/gBry4c_frvBqff44zs1rJ_uSPds/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gBry4c_frvBqff44zs1rJ_uSPds/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=uHkSg5N6JzM:heECTBcKYZ8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/check-access-of-file.html</feedburner:origLink></item><item><title>Story of a Zombie Process</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/sA7R3Dv-mQA/story-of-zombie-process.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Mon, 04 Oct 2010 06:12:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-7808447568203683797</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-04T18:43:44.101+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Have you seen the movie 'Resident Evil'? Then you probably know what a Zombie is ! 

Just like when the people die and still are able to walk and talk , in short way their last rituals were not...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Pk-qfGvODozJJvk5HJZdyXQhcnw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Pk-qfGvODozJJvk5HJZdyXQhcnw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Pk-qfGvODozJJvk5HJZdyXQhcnw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Pk-qfGvODozJJvk5HJZdyXQhcnw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=sA7R3Dv-mQA:9owpNXKGCqA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/story-of-zombie-process.html</feedburner:origLink></item><item><title>Per thread logging in C using POSIX threads</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/YZDEiUpD-jQ/per-thread-logging-in-c-using-posix.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Mon, 04 Oct 2010 02:22:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-2467335149185231277</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-04T16:33:50.158+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This is a simple implementation of per thread logging in unix/linux.

It creates separate log files per thread and independently writes log to each of the thread specific log files.



#include...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u_4B8Q8PWUCUz_VZSmH08MFYEHc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u_4B8Q8PWUCUz_VZSmH08MFYEHc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/u_4B8Q8PWUCUz_VZSmH08MFYEHc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u_4B8Q8PWUCUz_VZSmH08MFYEHc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=YZDEiUpD-jQ:TTyCvaw0fpQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/per-thread-logging-in-c-using-posix.html</feedburner:origLink></item><item><title>Getting CPU Parameters in Linux/Unix</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/byRgiZlC0ts/getting-cpu-parameters-in-linuxunix.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Fri, 01 Oct 2010 02:51:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-7985458687825384171</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-01T15:21:57.033+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Here is a simple implementation which reads the CPU information for a linux/unix kernel. 

It uses the /proc/cpuinfo file for this purpose , which is a standard file present in the linux/unix system...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GIWi-WT_th_JdKxkKaJ97sT2ka8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GIWi-WT_th_JdKxkKaJ97sT2ka8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GIWi-WT_th_JdKxkKaJ97sT2ka8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GIWi-WT_th_JdKxkKaJ97sT2ka8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=byRgiZlC0ts:f_RsE8xdRlk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/getting-cpu-parameters-in-linuxunix.html</feedburner:origLink></item><item><title>Simple Logger in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/Z1iG7cN6WMU/simple-logger-in-c.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Fri, 01 Oct 2010 00:06:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-8439929543796416143</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-10-01T12:36:30.078+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><description>This is a simple logger in C which logs the output of a C program to a file.



It has got following features:

1. Logging the time of compilation

2. Logging the file name from which the log is...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NmF5B6oig05SdxEWdFi7_-PxjLI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NmF5B6oig05SdxEWdFi7_-PxjLI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NmF5B6oig05SdxEWdFi7_-PxjLI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NmF5B6oig05SdxEWdFi7_-PxjLI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=Z1iG7cN6WMU:8-31pDaSQ4g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/10/simple-logger-in-c.html</feedburner:origLink></item><item><title>Simple XML Generator in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/dAacBZuhioI/simple-xml-generator-in-c.html</link><category>XML</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Wed, 29 Sep 2010 03:03:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-4080909507618878460</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-29T15:34:15.256+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This is a simple XML Document Generator in C which generates simple XML Documents based on the user input. 



To compile this program on linux : 



Save the file as "createtree.c"



Then run...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pwYh_Gb3IOfOmuyIQKZ5UFKuv3g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pwYh_Gb3IOfOmuyIQKZ5UFKuv3g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pwYh_Gb3IOfOmuyIQKZ5UFKuv3g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pwYh_Gb3IOfOmuyIQKZ5UFKuv3g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=dAacBZuhioI:sF9_Cj3yMH8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/simple-xml-generator-in-c.html</feedburner:origLink></item><item><title>Traversing and Printing the XML Tree</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/ejcz0825GYE/traversing-and-printing-xml-tree.html</link><category>XML</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Wed, 29 Sep 2010 00:03:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-5510895617230918712</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-29T15:34:15.257+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This program traverses the nodes of the XML Document and prints them in the order.

#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;libxml/parser.h&amp;gt;
#include &amp;lt;libxml/tree.h&amp;gt;

#ifdef...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AuuyTXsCM_4IMqrjKuy8Oy1p4wY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AuuyTXsCM_4IMqrjKuy8Oy1p4wY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AuuyTXsCM_4IMqrjKuy8Oy1p4wY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AuuyTXsCM_4IMqrjKuy8Oy1p4wY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=ejcz0825GYE:Kzk_Zf7VDNM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/traversing-and-printing-xml-tree.html</feedburner:origLink></item><item><title>Simple password based authentication program in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/3bPENOgnYE8/simple-password-based-authentication.html</link><category>Security</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Tue, 28 Sep 2010 03:19:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-1157058653862992487</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-28T15:49:28.908+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><description>This is a simple password based authentication program which runs both on Windows as well as Linux.



#ifdef __linux__
#include &amp;lt;unistd.h&amp;gt;
#endif
#include &amp;lt;iostream&amp;gt;
#include...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wb-C7KyhzZzGkgbQmUnKrYwQmi8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wb-C7KyhzZzGkgbQmUnKrYwQmi8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wb-C7KyhzZzGkgbQmUnKrYwQmi8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wb-C7KyhzZzGkgbQmUnKrYwQmi8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=3bPENOgnYE8:awkiTsxok1A:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/simple-password-based-authentication.html</feedburner:origLink></item><item><title>Simple XML Parser in C using libxml</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/o7jdwrXC_zM/simple-xml-parser-in-c-using-libxml.html</link><category>XML</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Mon, 27 Sep 2010 02:58:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-4404873122167973792</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-29T15:34:15.257+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This is a simple XML parser example in C which uses the libxml library for parsing the XML Documents.

Libxml is a XML processor for the GNOME project. It implements a whole lot of existing standards...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bmepuGvU6XBSuH3UgrZkJQNL7GU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bmepuGvU6XBSuH3UgrZkJQNL7GU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bmepuGvU6XBSuH3UgrZkJQNL7GU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bmepuGvU6XBSuH3UgrZkJQNL7GU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=o7jdwrXC_zM:chZYhX4zuUM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/simple-xml-parser-in-c-using-libxml.html</feedburner:origLink></item><item><title>Complete File Input Output Solution in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/R2K82D2yQ2k/complete-file-input-output-solution-in.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Tue, 21 Sep 2010 02:08:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-718287106917273270</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-22T20:20:04.757+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This is a complete file input output solution where user enters some information on the terminal and it gets stored in a file. Also this is a structured file operation program which suports :



1....&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/R47OqUqjHYkNKxpSxpuJe8Lk8KU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R47OqUqjHYkNKxpSxpuJe8Lk8KU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/R47OqUqjHYkNKxpSxpuJe8Lk8KU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R47OqUqjHYkNKxpSxpuJe8Lk8KU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=R2K82D2yQ2k:oo_m4BfIvSw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/complete-file-input-output-solution-in.html</feedburner:origLink></item><item><title>Simple multithreading example</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/4UpPkbBpxfo/simple-multithreading-example.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Wed, 15 Sep 2010 03:41:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-249762097323800302</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-22T20:24:43.539+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This is a simple implementation showing how multithreading works.

It prints the multiples of 2 , 3 and 7 in different time intervals.



#include &amp;lt;unistd.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BaFU96jTtZ3Cgv4wsiy2r1zFsu0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BaFU96jTtZ3Cgv4wsiy2r1zFsu0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BaFU96jTtZ3Cgv4wsiy2r1zFsu0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BaFU96jTtZ3Cgv4wsiy2r1zFsu0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=4UpPkbBpxfo:fQ_UFdADiyM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/simple-multithreading-example.html</feedburner:origLink></item><item><title>DES Implementation in C++</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/n5P-yvgmneM/des-implementation-in-c.html</link><category>Security</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Wed, 15 Sep 2010 01:57:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-7585839716971048097</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-22T20:29:51.920+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Implementation of DES Encryption and decryption algorithms



//Code from www.programmersheaven.com


# include &amp;lt;stdio.h&amp;gt;
# include &amp;lt;fstream&amp;gt;
# include &amp;lt;string.h&amp;gt;
# include...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/REB860Ie9loHnuGyXxn_bp5yMIk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/REB860Ie9loHnuGyXxn_bp5yMIk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/REB860Ie9loHnuGyXxn_bp5yMIk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/REB860Ie9loHnuGyXxn_bp5yMIk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=n5P-yvgmneM:EaBBwbFJqYQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/des-implementation-in-c.html</feedburner:origLink></item><item><title>'ls' command implementation for Linux/Unix in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/eNquKh1AmpU/ls-command-implementation-for-linuxunix.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Tue, 07 Sep 2010 07:54:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-3776943813855779285</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-22T20:30:14.569+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This program simulates the simple list directory 'ls' command in Unix. It uses the inbuilt system calls to create this functionality.



#include &amp;lt;sys/types.h&amp;gt;
#include...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q6Q6ixG2t136uRywbQKUpAZVbI0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q6Q6ixG2t136uRywbQKUpAZVbI0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q6Q6ixG2t136uRywbQKUpAZVbI0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q6Q6ixG2t136uRywbQKUpAZVbI0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=eNquKh1AmpU:tIkNJMPAn3o:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/ls-command-implementation-for-linuxunix.html</feedburner:origLink></item><item><title>Implementation of Map in C++</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/IMgK5NwYvwU/implementation-of-map-in-c.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Wed, 01 Sep 2010 14:36:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-1136844978494903031</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-22T20:30:36.847+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This is a simple implementation of maps in C++ . Here I have used a simple map containing an int as the key and string as the value . This can further be extended to any data type needed by the use...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oYCXLWCUMZbZZj9owtXyq-ahNr0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oYCXLWCUMZbZZj9owtXyq-ahNr0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oYCXLWCUMZbZZj9owtXyq-ahNr0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oYCXLWCUMZbZZj9owtXyq-ahNr0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=IMgK5NwYvwU:Mhsh4-D02AA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/09/implementation-of-map-in-c.html</feedburner:origLink></item><item><title>Links for 2010-08-22 [Digg]</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/3Q635937BC4/dugg</link><pubDate>Mon, 23 Aug 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://digg.com/users/vgupta80//dugg#2010-08-22</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Hexadecimal_to_Integer_Conversion_in_C"&gt;Simplest Codings: Hexadecimal to Integer Conversion in C&lt;/a&gt;&lt;br/&gt;
A simple implementation of converter which converts hexadecimal string to an integer.&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://digg.com/users/vgupta80//dugg#2010-08-22</feedburner:origLink></item><item><title>Hexadecimal to Integer Conversion in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/I8Mrk1mPM2g/hexadecimal-to-integer-conversion-in-c.html</link><category>Generic</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Sun, 22 Aug 2010 06:04:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-5909201521509684140</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-22T20:31:18.760+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>A simple implementation of converter which converts hexadecimal string to an integer. 



#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;string.h&amp;gt;

// To convert a-f or A-F to a...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/P2F7lfQWtKZB_UQnkPLt-YlQTTg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/P2F7lfQWtKZB_UQnkPLt-YlQTTg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/P2F7lfQWtKZB_UQnkPLt-YlQTTg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/P2F7lfQWtKZB_UQnkPLt-YlQTTg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=I8Mrk1mPM2g:NRo--N9zaoA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/08/hexadecimal-to-integer-conversion-in-c.html</feedburner:origLink></item><item><title>Links for 2010-08-19 [Digg]</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/Hk6buq3tBhc/dugg</link><pubDate>Fri, 20 Aug 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://digg.com/users/vgupta80//dugg#2010-08-19</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_IPC_Shared_Memory_Implementation_in_C"&gt;Simplest Codings: IPC Shared Memory Implementation in C&lt;/a&gt;&lt;br/&gt;
A simple Implementation of Shared Memory in CShared Memory is a type of IPC where the two processes share same memory chunk and use it for IPC. One process writes into that memory and other reads it.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_IPC_Message_Queue_Implementation_in_C"&gt;Simplest Codings: IPC Message Queue Implementation in C&lt;/a&gt;&lt;br/&gt;
A simple implementation of IPC Message Queues. IPC_msgq_send.c adds the message on the message queue . IPC_msgq_rcv.c removes the message from the message queue.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_SCTP_Server_Client_Implementation_in_C"&gt;Simplest Codings: SCTP Server Client Implementation in C&lt;/a&gt;&lt;br/&gt;
Here's a simple implementation of SCTP server and client in C&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://digg.com/users/vgupta80//dugg#2010-08-19</feedburner:origLink></item><item><title>IPC Shared Memory Implementation in C</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/8MlEhi5bg24/ipc-shared-memory-implementation-in-c.html</link><category>System Programming</category><author>noreply@blogger.com (Varun Gupta)</author><pubDate>Thu, 19 Aug 2010 03:47:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3459284654925679524.post-2843749204761943209</guid><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2010-09-22T20:36:00.887+05:30</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>A simple Implementation of Shared Memory in C



Shared Memory is a type of IPC where the two processes share same memory chunk and use it for IPC. One process writes into that memory and other reads...&lt;br/&gt;
&lt;br/&gt;
Always looking for an overall code which has all the functionalities. Looking for complete data structures, bitwise operators , design patterns , Visit my blog to fulfill all these requirements.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QmwkqrDy7FNkC-Qq3iejgpcmTIM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QmwkqrDy7FNkC-Qq3iejgpcmTIM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QmwkqrDy7FNkC-Qq3iejgpcmTIM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QmwkqrDy7FNkC-Qq3iejgpcmTIM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SimplestCodings?a=8MlEhi5bg24:_aw3ieWlkVU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SimplestCodings?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><feedburner:origLink>http://simplestcodings.blogspot.com/2010/08/ipc-shared-memory-implementation-in-c.html</feedburner:origLink></item><item><title>Links for 2010-08-16 [Digg]</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/cI1O0exV_5M/dugg</link><pubDate>Tue, 17 Aug 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://digg.com/users/vgupta80//dugg#2010-08-16</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Secure_Server_Client_using_OpenSSL_in_C"&gt;Simplest Codings: Secure Server Client using OpenSSL in C&lt;/a&gt;&lt;br/&gt;
Here's an implementation of Secure Server Client using openssl.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Custom_strncat_function_in_C"&gt;Simplest Codings: Custom strncat function in C&lt;/a&gt;&lt;br/&gt;
This is a simple implementation of Variable length String Concatenation function. It'll concatenate the mentioned length of a string into another string.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Custom_strncpy_function_in_C"&gt;Simplest Codings: Custom strncpy function in C&lt;/a&gt;&lt;br/&gt;
Here's a simple implementation of a custom desired length string copy function. This function copies a string into another upto a desired length.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Custom_string_compare_function_in_C"&gt;Simplest Codings: Custom string compare function in C&lt;/a&gt;&lt;br/&gt;
Here's a simple implementation of strcmp function of string library.It returns -1 if the first string is less than second , 1 if second string is less than first and 0 if the strings are equal.&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://digg.com/users/vgupta80//dugg#2010-08-16</feedburner:origLink></item><item><title>Links for 2010-08-14 [Digg]</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/UaikUX72JUM/dugg</link><pubDate>Sun, 15 Aug 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://digg.com/users/vgupta80//dugg#2010-08-14</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Adapter_Design_Pattern_in_C"&gt;Simplest Codings: Adapter Design Pattern in C++&lt;/a&gt;&lt;br/&gt;
Adapter Design pattern converts the interface of a class into another interface that clients expect. It lets classes work together which is not possible otherwise because of incompatible interfaces. It is also called as Wrapper Classes.Here's a simple implementation for the Adapter Design Pattern in C++.&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://digg.com/users/vgupta80//dugg#2010-08-14</feedburner:origLink></item><item><title>Links for 2010-08-13 [Digg]</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/SxYcJziQXb8/dugg</link><pubDate>Sat, 14 Aug 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://digg.com/users/vgupta80//dugg#2010-08-13</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_UDP_Server_Client_Implementation_in_C_for"&gt;Simplest Codings: UDP Server Client Implementation in C for&lt;/a&gt;&lt;br/&gt;
Here's a simple UDP Server Client Implementation in C for Unix/Linux.As UDP is a connection-less protocol, it is not reliable or we can say that we don't send acknowledgements for the packets sent.Here is a concurrent UDP server which can accept packets from multiple clients simultaneously.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Creating_a_Daemon_Process_in_Unix_Linux"&gt;Simplest Codings: Creating a Daemon Process in Unix/Linux&lt;/a&gt;&lt;br/&gt;
This is a simple implementation of daemonizing a process.A Daemon process is one which runs continously in the background and it can't be killed.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Pipe_from_parent_to_child"&gt;Simplest Codings: Pipe from parent to child&lt;/a&gt;&lt;br/&gt;
This is a simple example of sending data over a pipe in Unix/Linux , from parent to child.&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://digg.com/users/vgupta80//dugg#2010-08-13</feedburner:origLink></item><item><title>Links for 2010-08-05 [Digg]</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/6kEwoeBLZf4/dugg</link><pubDate>Fri, 06 Aug 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://digg.com/users/vgupta80//dugg#2010-08-05</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Custom_String_Tokenizer_in_C"&gt;Simplest Codings: Custom String Tokenizer in C&lt;/a&gt;&lt;br/&gt;
A simple implementation of String Tokenizer in C. This program tokenizes a string on the basis of a delimiter.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Find_if_a_substring_exists_in_a_string"&gt;Simplest Codings: Find if a substring exists in a string?&lt;/a&gt;&lt;br/&gt;
This is a simple implementation of function which determines if a substring exists in a string or not. Also it determines how many times the the substring is present in a string.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Custom_malloc_function_Implementation_in_C"&gt;Simplest Codings: Custom malloc function Implementation in C&lt;/a&gt;&lt;br/&gt;
For embedded systems we can't use the standard library functions as it is , since they consume more memory cycles as well as space. So we need to devise our own functions for such purposes.One similar implementation of memory allocation function 'malloc' is presented here.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Hex_Dump_a_File_in_C"&gt;Simplest Codings: Hex Dump a File in C&lt;/a&gt;&lt;br/&gt;
Program in C to Hex dump a file.&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://digg.com/users/vgupta80//dugg#2010-08-05</feedburner:origLink></item><item><title>Links for 2010-08-04 [Digg]</title><link>http://feedproxy.google.com/~r/SimplestCodings/~3/-_0lkd9Ipro/dugg</link><pubDate>Thu, 05 Aug 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://digg.com/users/vgupta80//dugg#2010-08-04</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Function_Pointers_in_C"&gt;Simplest Codings: Function Pointers in C&lt;/a&gt;&lt;br/&gt;
Generally functions are called statically , i.e. it is already decided at compile time itself that which particular function would be called. But we can also make this decision at runtime by the use of what is called 'function pointers'.This is a simple implementation showing how to use function pointers in C.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Circular_Queue_using_Array"&gt;Simplest Codings: Circular Queue using Array&lt;/a&gt;&lt;br/&gt;
A Circular Queue is a Data Structure in which the data is stored in a circular manner , i.e. the array can be reused from the front also.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Merge_Sort_Implementation_in_C"&gt;Simplest Codings: Merge Sort Implementation in C++&lt;/a&gt;&lt;br/&gt;
Merge Sort is a technique in which we use the algorithm of divide and conquer.The input array is first divided into smaller sub-arrays, which are sorted in turn and again merged to get the original array in a sorted manner.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://digg.com/programming/Simplest_Codings_Basic_File_Operations_in_C"&gt;Simplest Codings: Basic File Operations in C++&lt;/a&gt;&lt;br/&gt;
Here's a simple implementation of basic File Operations in C++.It includes : 1. Reading from a File2. Writing to a File3. Appending to a File4. Deleting a File5. Renaming a File6. Listing Files in a directory&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://digg.com/users/vgupta80//dugg#2010-08-04</feedburner:origLink></item></channel></rss>

