<?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; lohiya.ashwani</title>
	<atom:link href="https://www.emblogic.com/blog/author/lohiya-ashwani/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>file read-write operation&#8230;unexpected output&#8230; plz explain&#8230;</title>
		<link>https://www.emblogic.com/blog/08/file-read-write-operation-unexpected-output-plz-explain/</link>
		<comments>https://www.emblogic.com/blog/08/file-read-write-operation-unexpected-output-plz-explain/#comments</comments>
		<pubDate>Sat, 18 Aug 2012 09:05:24 +0000</pubDate>
		<dc:creator><![CDATA[lohiya.ashwani]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=4873</guid>
		<description><![CDATA[here is the code: i was writing a character whose ASCII value is 144 to a file transfer.txt, then i close the file and open it to read the character which i wrote and when i checked the ascii value &#8230; <a href="https://www.emblogic.com/blog/08/file-read-write-operation-unexpected-output-plz-explain/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>here is the code:</p>
<p>i was writing a character whose ASCII value is 144 to a file transfer.txt, then i close the file and open it to read the character which i wrote and when i checked the ascii value of it it was showing -112&#8230;..why????</p>
<p>&nbsp;</p>
<p>#include&lt;stdio.h&gt;<br />
#include&lt;fcntl.h&gt;<br />
#include&lt;stdlib.h&gt;</p>
<p>void main()<br />
{<br />
char ch=144,str;<br />
int fd;<br />
fd=open(&#8220;transfer.txt&#8221;,O_WRONLY|O_CREAT|O_TRUNC);<br />
if(fd&lt;0)<br />
{<br />
perror(&#8220;fault\n&#8221;);<br />
exit(1);<br />
}<br />
write(fd,&amp;ch,1);<br />
close(fd);<br />
fd=open(&#8220;transfer.txt&#8221;,O_RDONLY);<br />
read(fd,&amp;str,1);<br />
printf(&#8220;%d\n&#8221;,str);<br />
close(fd);<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/08/file-read-write-operation-unexpected-output-plz-explain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>size command</title>
		<link>https://www.emblogic.com/blog/06/size-command/</link>
		<comments>https://www.emblogic.com/blog/06/size-command/#comments</comments>
		<pubDate>Thu, 28 Jun 2012 10:05:14 +0000</pubDate>
		<dc:creator><![CDATA[lohiya.ashwani]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=3637</guid>
		<description><![CDATA[#include&#60;stdio.h&#62;  // filename hello.c int main() { printf(&#8220;hello i m ASHWANI\n&#8221;); } ]# size hello text       data        bss        dec        hex    filename 1149        492         16       1657        679    hello what does it mean? plz &#8230; <a href="https://www.emblogic.com/blog/06/size-command/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;  // filename hello.c<br />
int main()<br />
{<br />
printf(&#8220;hello i m ASHWANI\n&#8221;);<br />
}<br />
]# size hello</p>
<p>text       data        bss        dec        hex    filename<br />
1149        492         16       1657        679    hello<br />
what does it mean? plz reply&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/06/size-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
