<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Make your own atoi() function in C</title>
	<atom:link href="http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/</link>
	<description></description>
	<lastBuildDate>Mon, 02 Jan 2012 07:11:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Breadncup</title>
		<link>http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/comment-page-1/#comment-3680</link>
		<dc:creator>Breadncup</dc:creator>
		<pubDate>Sat, 26 Nov 2011 16:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.breadncup.com/?p=225#comment-3680</guid>
		<description>k holds an integer, and it is recalculated by looking at the each character from the beginning given p. (*p) tells you the character&#039;s ASCII code and &#039;0&#039; as well. The difference gives the actual integer number. k*10 is shifting of previous value.

For example, if p is given by &quot;425&quot;,

The first calculation of k = 0*10 + (*p) - &#039;0&#039; = 0 + 52-48 = 4
The next calculation of k = 4*10 + (*p) - &#039;0&#039; = 40 + 50 - 48 = 42
The final calculation of k = 42*10 + (*p) - &#039;0&#039; = 420 + 53-48 = 425

Character ASCII code of &quot;4&quot; is 52, &quot;2&quot; is 50, &quot;5&quot; is 53, and &quot;0&quot; is 48.

Hope this would help you,
Daniel</description>
		<content:encoded><![CDATA[<p>k holds an integer, and it is recalculated by looking at the each character from the beginning given p. (*p) tells you the character&#8217;s ASCII code and &#8217;0&#8242; as well. The difference gives the actual integer number. k*10 is shifting of previous value.</p>
<p>For example, if p is given by &#8220;425&#8243;,</p>
<p>The first calculation of k = 0*10 + (*p) &#8211; &#8217;0&#8242; = 0 + 52-48 = 4<br />
The next calculation of k = 4*10 + (*p) &#8211; &#8217;0&#8242; = 40 + 50 &#8211; 48 = 42<br />
The final calculation of k = 42*10 + (*p) &#8211; &#8217;0&#8242; = 420 + 53-48 = 425</p>
<p>Character ASCII code of &#8220;4&#8243; is 52, &#8220;2&#8243; is 50, &#8220;5&#8243; is 53, and &#8220;0&#8243; is 48.</p>
<p>Hope this would help you,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xenon</title>
		<link>http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/comment-page-1/#comment-3679</link>
		<dc:creator>Xenon</dc:creator>
		<pubDate>Sat, 26 Nov 2011 16:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.breadncup.com/?p=225#comment-3679</guid>
		<description>thanks for help
can you please explain this string ?: 

   =&gt;   k = k*10 + (*p) - &#039;0&#039;;</description>
		<content:encoded><![CDATA[<p>thanks for help<br />
can you please explain this string ?: </p>
<p>   =&gt;   k = k*10 + (*p) &#8211; &#8217;0&#8242;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YOUNGWHAN SONG (송영환)</title>
		<link>http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/comment-page-1/#comment-743</link>
		<dc:creator>YOUNGWHAN SONG (송영환)</dc:creator>
		<pubDate>Tue, 22 Dec 2009 11:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.breadncup.com/?p=225#comment-743</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;New blog post: Make your own atoi() function in C http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">New blog post: Make your own atoi() function in C <a href="http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/" rel="nofollow">http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel (Youngwhan)</title>
		<link>http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/comment-page-1/#comment-2298</link>
		<dc:creator>Daniel (Youngwhan)</dc:creator>
		<pubDate>Tue, 22 Dec 2009 11:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.breadncup.com/?p=225#comment-2298</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;New blog post: Make your own atoi() function in C http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">New blog post: Make your own atoi() function in C <a href="http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/" rel="nofollow">http://blog.breadncup.com/2009/12/21/make-your-own-atoi-function-in-c/</a></span></span></span></p>
]]></content:encoded>
	</item>
</channel>
</rss>

