title: Difference between strchr and strpbrk
body: <p>What is the difference between <code>strchr()</code> and <code>strpbrk()</code>. I couldn't find any difference between those. </p>
  
  <p><code>strpbrk()</code>:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  int main()
  {
          char str1[30] = "New Delhi is awesome city", str2[10] = "an";
          char *st;
          st = strpbrk(str1, str2);
          printf("%s"st);
          return 0;
  }
  </code></pre>
  
  <p>output: <code>awesome city</code></p>
  
  <p><code>strchr()</code></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  int main()
  {
          char str1[] = "New Delhi is awesome city", ch = 'a';
          char *chpos;
          chpos = strchr(str1, ch);
          if(chpos)
                  printf("%s",chpos);
          return 0;
  }
  </code></pre>
  
  <p>output: <code>awesome city</code></p>