title: Use of strtok()
body: <p>I'm having a problem using strtok().
  I have a string i'm inputing and it's supposed to take the <code>_#_</code> off and leave the rest. The problem is that it also deletes the <code>_</code> and i need it to specifically delete <code>_#_</code>.</p>
  
  <p>This is my code here. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main()
  {
    char *strtok( char *str1, const char *str2 );
  
    char str[] = "hello_#_there_#_my__name_#_is_#_sam";
  
    char delims[] = "_#_";
    char *result = NULL;
  
    result = strtok( str, delims );
  
    while( result != NULL )
    {
      printf( "%s", result );
      result = strtok( NULL, delims );
    }
  
    return 0;
  
  }
  </code></pre>
  
  <p>This is what it's returning me:
  hellotheremynameissam</p>
  
  <p>This is what i'm trying to have
  hellotheremy__nameissam</p>
  
  <p>Any ideas?</p>