title: Problem with strcmp usage
body: <p>here is code </p>
  
  <pre><code>void process(char *input)
  {
  char *s;
  char s1[100];
  s=strtok(input,":");
  
  while(1)
  {
    if(strcmp(s,"regular")==0)// the strcmp is not working
    {
    s=strtok(NULL,",");
    if(s==NULL)
    break;
    }
  }
  </code></pre>
  
  <p>actually the input to the function process is </p>
  
  <pre><code>i/p:          regular:ddf
  </code></pre>
  
  <p>but when i extract the token using strtok func and display s 
  it is printing as "regular" correctly, but when i use "s" in strcmp(s,"regular")==0
  it is not working. what is the problem????</p>