<?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: Doubt:</title>
	<atom:link href="https://www.emblogic.com/blog/09/doubt-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/09/doubt-2/</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: taruna</title>
		<link>https://www.emblogic.com/blog/09/doubt-2/#comment-4035</link>
		<dc:creator><![CDATA[taruna]]></dc:creator>
		<pubDate>Sun, 29 Sep 2013 08:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7171#comment-4035</guid>
		<description><![CDATA[The output will be:
This is
http://www.emblogic.com
website

and the first argument is not const char* but it is char*
Whenever we need to parse the same string , first argument in strtok() should be null.]]></description>
		<content:encoded><![CDATA[<p>The output will be:<br />
This is<br />
<a href="http://www.emblogic.com" rel="nofollow">http://www.emblogic.com</a><br />
website</p>
<p>and the first argument is not const char* but it is char*<br />
Whenever we need to parse the same string , first argument in strtok() should be null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: msiddarth</title>
		<link>https://www.emblogic.com/blog/09/doubt-2/#comment-4034</link>
		<dc:creator><![CDATA[msiddarth]]></dc:creator>
		<pubDate>Fri, 27 Sep 2013 18:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7171#comment-4034</guid>
		<description><![CDATA[strtok() will replace a the characters in the original string with a NULL each time the function is called using the same string, so the original string is modified by the use of strtok().
    The second argument to strtok() can be changed at any time to a different delimiter.
    Only single characters are considered to be delimiters. 
The below example will illustrates the usage of strtok.
#include 
#include 

int main()
{
   const char str[80] = &quot;This is - www.emblogic.com - website&quot;;
   const char s[2] = &quot;-&quot;;
   char *token;
   
   /* get the first token */
   token = strtok(str, s);
   
   /* walk through other tokens */
   while( token != NULL ) 
   {
      printf( &quot; %s\n&quot;, token );
    
      token = strtok(NULL, s);
   }
   
   return(0);
}

the output of the above program will be:
This is 
www.tutorialspoint.com 
website]]></description>
		<content:encoded><![CDATA[<p>strtok() will replace a the characters in the original string with a NULL each time the function is called using the same string, so the original string is modified by the use of strtok().<br />
    The second argument to strtok() can be changed at any time to a different delimiter.<br />
    Only single characters are considered to be delimiters.<br />
The below example will illustrates the usage of strtok.<br />
#include<br />
#include </p>
<p>int main()<br />
{<br />
   const char str[80] = &#8220;This is &#8211; <a href="http://www.emblogic.com" rel="nofollow">http://www.emblogic.com</a> &#8211; website&#8221;;<br />
   const char s[2] = &#8220;-&#8221;;<br />
   char *token;</p>
<p>   /* get the first token */<br />
   token = strtok(str, s);</p>
<p>   /* walk through other tokens */<br />
   while( token != NULL )<br />
   {<br />
      printf( &#8221; %s\n&#8221;, token );</p>
<p>      token = strtok(NULL, s);<br />
   }</p>
<p>   return(0);<br />
}</p>
<p>the output of the above program will be:<br />
This is<br />
<a href="http://www.tutorialspoint.com" rel="nofollow">http://www.tutorialspoint.com</a><br />
website</p>
]]></content:encoded>
	</item>
</channel>
</rss>
