<?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: FILE I/O</title>
	<atom:link href="https://www.emblogic.com/blog/07/file-io/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/07/file-io/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: Kuldeep Dhanotia</title>
		<link>https://www.emblogic.com/blog/07/file-io/#comment-277</link>
		<dc:creator><![CDATA[Kuldeep Dhanotia]]></dc:creator>
		<pubDate>Sat, 01 Oct 2011 13:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=777#comment-277</guid>
		<description><![CDATA[first of all u should open ur file in binary mode that is rb.
after that it gives u the size of the file]]></description>
		<content:encoded><![CDATA[<p>first of all u should open ur file in binary mode that is rb.<br />
after that it gives u the size of the file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamran</title>
		<link>https://www.emblogic.com/blog/07/file-io/#comment-199</link>
		<dc:creator><![CDATA[kamran]]></dc:creator>
		<pubDate>Mon, 08 Aug 2011 19:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=777#comment-199</guid>
		<description><![CDATA[the problem stated by you is not a big think..
here is a hint check the function ftell...
long ftell( FILE *stream );
and ...
The ftell() function returns the current file position for stream, or -1 if an error occurs. 
First thing the return type is not is accordance to function return type.]]></description>
		<content:encoded><![CDATA[<p>the problem stated by you is not a big think..<br />
here is a hint check the function ftell&#8230;<br />
long ftell( FILE *stream );<br />
and &#8230;<br />
The ftell() function returns the current file position for stream, or -1 if an error occurs.<br />
First thing the return type is not is accordance to function return type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bishan</title>
		<link>https://www.emblogic.com/blog/07/file-io/#comment-191</link>
		<dc:creator><![CDATA[Bishan]]></dc:creator>
		<pubDate>Sat, 23 Jul 2011 20:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=777#comment-191</guid>
		<description><![CDATA[Sir, My doubt is tht I am allocating only 1 byte but file is storing 136 bytes in memory and didn&#039;t give any segmentation fault.]]></description>
		<content:encoded><![CDATA[<p>Sir, My doubt is tht I am allocating only 1 byte but file is storing 136 bytes in memory and didn&#8217;t give any segmentation fault.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m.siddarth</title>
		<link>https://www.emblogic.com/blog/07/file-io/#comment-190</link>
		<dc:creator><![CDATA[m.siddarth]]></dc:creator>
		<pubDate>Sat, 23 Jul 2011 07:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=777#comment-190</guid>
		<description><![CDATA[Since malloc() operates in bytes of memory and you often operate with other data types (e.g. &quot;Allocate for me 12 ints.&quot;), we often use the sizeof() operator to determine how many bytes to allocate, 
More commonly, we pack this onto one line:
if ((p = malloc(100)) == NULL) 
{ // allocate 100 bytes
    printf(&quot;Ooooo!  Out of memory error!\n&quot;);
    exit(1);
}
Hence if we define ch = malloc(1) it will allocate 1 byte of memory.]]></description>
		<content:encoded><![CDATA[<p>Since malloc() operates in bytes of memory and you often operate with other data types (e.g. &#8220;Allocate for me 12 ints.&#8221;), we often use the sizeof() operator to determine how many bytes to allocate,<br />
More commonly, we pack this onto one line:<br />
if ((p = malloc(100)) == NULL)<br />
{ // allocate 100 bytes<br />
    printf(&#8220;Ooooo!  Out of memory error!\n&#8221;);<br />
    exit(1);<br />
}<br />
Hence if we define ch = malloc(1) it will allocate 1 byte of memory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
