title: How can I check if a single char exists in a C string?
body: <p>I want to check if a single char is in a C string. The character is the <code>'|'</code>
  used for pipelines in Linux (Actually, I also want to check for <code>'&lt;'</code>, <code>'&gt;'</code>, <code>'&gt;&gt;'</code>, <code>'&amp;'</code>).</p>
  
  <p>In Java I can do this: </p>
  
  <pre><code>String.indexOf()
  </code></pre>
  
  <p>But how can I do this in C, without looping through the whole string (a <code>char*</code> string)?</p>