title: How to check if a string starts with another string in C?
body: <p>Is there something like <code>startsWith(str_a, str_b)</code> in the standard C library?</p>
  
  <p>It should take pointers to two strings that end with nullbytes, and tell me whether the first one also appears completely at the beginning of the second one.</p>
  
  <p>Examples:</p>
  
  <pre><code>"abc", "abcdef" -&gt; true
  "abcdef", "abc" -&gt; false
  "abd", "abdcef" -&gt; true
  "abc", "abc"    -&gt; true
  </code></pre>