<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'strtok - String Function' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'strtok - String Function' posted on the 'C and C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 14:27:10 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 14:27:10 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>strtok - String Function</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/333584/333584/strtok---string-function/</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
Another question on String Function, strtok.&lt;br /&gt;
&lt;br /&gt;
For strtok, here is the explanation, &lt;a href="http://www.cplusplus.com/ref/cstring/strtok.html"&gt;http://www.cplusplus.com/ref/cstring/strtok.html&lt;/a&gt;&lt;br /&gt;
and my question follows in &lt;strong&gt;&lt;span style="color: Blue;"&gt;blue&lt;/span&gt;&lt;/strong&gt;[/blue]&lt;br /&gt;
&lt;br /&gt;
Summerize what they say... is this simply to separate &lt;strong&gt;delimiter&lt;/strong&gt; from other deliminater...? Then, is using &lt;strong&gt;while&lt;/strong&gt; the only way to see its result...?&lt;br /&gt;
&lt;br /&gt;
This is the trial code introduced on the site above;&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
/* strtok example */
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;string.h&amp;gt;

int main ()
{
  char str[] ="This is a sample string,just testing.";
  char * pch;
  printf ("Splitting string \"%s\" in tokens:\n",str);
  pch = strtok (str," ");
  while (pch != NULL)
  {
    printf ("%s\n",pch);
    pch = strtok (NULL, " ,.");
  }
  return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Output&lt;/strong&gt;&lt;br /&gt;
Splitting string "This is a sample string,just testing." in tokens:&lt;br /&gt;
This&lt;br /&gt;
is&lt;br /&gt;
a&lt;br /&gt;
sample&lt;br /&gt;
string&lt;br /&gt;
just&lt;br /&gt;
testing&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/333584/333584/strtok---string-function/</guid>
      <pubDate>Fri, 31 Mar 2006 00:01:59 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: strtok - String Function</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/333584/333588/re-strtok---string-function/#333588</link>
      <description>: Hi&lt;br /&gt;
: &lt;br /&gt;
: Another question on String Function, strtok.&lt;br /&gt;
: &lt;br /&gt;
: For strtok, here is the explanation, &lt;a href="http://www.cplusplus.com/ref/cstring/strtok.html"&gt;http://www.cplusplus.com/ref/cstring/strtok.html&lt;/a&gt;&lt;br /&gt;
: and my question follows in &lt;strong&gt;&lt;span style="color: Blue;"&gt;blue&lt;/span&gt;&lt;/strong&gt;[/blue]&lt;br /&gt;
: &lt;br /&gt;
: Summerize what they say... is this simply to separate &lt;strong&gt;delimiter&lt;/strong&gt; from other deliminater...? Then, is using &lt;strong&gt;while&lt;/strong&gt; the only way to see its result...?&lt;br /&gt;
: &lt;br /&gt;
: This is the trial code introduced on the site above;&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: /* strtok example */
: #include &amp;lt;stdio.h&amp;gt;
: #include &amp;lt;string.h&amp;gt;
: 
: int main ()
: {
:   char str[] ="This is a sample string,just testing.";
:   char * pch;
:   printf ("Splitting string \"%s\" in tokens:\n",str);
:   pch = strtok (str," ");
:   while (pch != NULL)
:   {
:     printf ("%s\n",pch);
:     pch = strtok (NULL, " ,.");
:   }
:   return 0;
: }
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;strong&gt;Output&lt;/strong&gt;&lt;br /&gt;
: Splitting string "This is a sample string,just testing." in tokens:&lt;br /&gt;
: This&lt;br /&gt;
: is&lt;br /&gt;
: a&lt;br /&gt;
: sample&lt;br /&gt;
: string&lt;br /&gt;
: just&lt;br /&gt;
: testing&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Greets,&lt;br /&gt;
Eric Goldstein&lt;br /&gt;
www.gvh-maatwerk.nl&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/333584/333588/re-strtok---string-function/#333588</guid>
      <pubDate>Fri, 31 Mar 2006 01:49:40 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: strtok - String Function</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/333584/333674/re-strtok---string-function/#333674</link>
      <description>: : Hi&lt;br /&gt;
: : &lt;br /&gt;
: : Another question on String Function, strtok.&lt;br /&gt;
: : &lt;br /&gt;
: : For strtok, here is the explanation, &lt;a href="http://www.cplusplus.com/ref/cstring/strtok.html"&gt;http://www.cplusplus.com/ref/cstring/strtok.html&lt;/a&gt;&lt;br /&gt;
: : and my question follows in &lt;strong&gt;&lt;span style="color: Blue;"&gt;blue&lt;/span&gt;&lt;/strong&gt;[/blue]&lt;br /&gt;
: : &lt;br /&gt;
: : Summerize what they say... is this simply to separate &lt;strong&gt;delimiter&lt;/strong&gt; from other deliminater...? Then, is using &lt;strong&gt;while&lt;/strong&gt; the only way to see its result...?&lt;br /&gt;
: : &lt;br /&gt;
: : This is the trial code introduced on the site above;&lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;
: : /* strtok example */
: : #include &amp;lt;stdio.h&amp;gt;
: : #include &amp;lt;string.h&amp;gt;
: : 
: : int main ()
: : {
: :   char str[] ="This is a sample string,just testing.";
: :   char * pch;
: :   printf ("Splitting string \"%s\" in tokens:\n",str);
: :   pch = strtok (str," ");
: :   while (pch != NULL)
: :   {
: :     printf ("%s\n",pch);
: :     pch = strtok (NULL, " ,.");
: :   }
: :   return 0;
: : }
: : &lt;/pre&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;strong&gt;Output&lt;/strong&gt;&lt;br /&gt;
: : Splitting string "This is a sample string,just testing." in tokens:&lt;br /&gt;
: : This&lt;br /&gt;
: : is&lt;br /&gt;
: : a&lt;br /&gt;
: : sample&lt;br /&gt;
: : string&lt;br /&gt;
: : just&lt;br /&gt;
: : testing&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: Correct.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: Greets,&lt;br /&gt;
: Eric Goldstein&lt;br /&gt;
: www.gvh-maatwerk.nl&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Blue;"&gt;&lt;br /&gt;
OK, thanks for confirming my understanding. ;)&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/333584/333674/re-strtok---string-function/#333674</guid>
      <pubDate>Fri, 31 Mar 2006 21:01:16 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>