<?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: how to take string as input from the user ???</title>
	<atom:link href="https://www.emblogic.com/blog/07/how-to-take-string-as-input-from-the-user/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/07/how-to-take-string-as-input-from-the-user/</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: m siddarth</title>
		<link>https://www.emblogic.com/blog/07/how-to-take-string-as-input-from-the-user/#comment-898</link>
		<dc:creator><![CDATA[m siddarth]]></dc:creator>
		<pubDate>Mon, 02 Jul 2012 06:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3717#comment-898</guid>
		<description><![CDATA[Implement the following code before any scanf() or fgets().

int c;
/* discard all characters up to and including newline */
while ((c = getchar()) != &#039;\n&#039; &amp;&amp; c != EOF); 
Reason: it&#039;s because of the \n stuck in the input stream and we have to flush it out every time.]]></description>
		<content:encoded><![CDATA[<p>Implement the following code before any scanf() or fgets().</p>
<p>int c;<br />
/* discard all characters up to and including newline */<br />
while ((c = getchar()) != &#8216;\n&#8217; &amp;&amp; c != EOF);<br />
Reason: it&#8217;s because of the \n stuck in the input stream and we have to flush it out every time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
