title: strcasecmp in C returns 156 instead of 0, any ideas why?
body: <p>I have the following code:</p>
  
  <pre><code>printf("num: %d\n", strcasecmp(buf, "h\n"));
  </code></pre>
  
  <p>And I get the following results when I try plugging in different letters:</p>
  
  <pre><code>a: -7
  g: -1
  i: 1
  j: 2
  h: 156
  H: 156
  </code></pre>
  
  <p>Should <code>strcasecmp</code> not return 0 when buf is equal to <code>H</code> or <code>h</code>? Any ideas why it's returning 156? I need to figure out how to check whether the user types <kbd>H</kbd> or <kbd>h</kbd>.</p>
  
  <p>Thanks!</p>
  
  <p>Edit: I'm reading buf in the following way:
  <code>read(0, buf, MAXBUFLEN);</code></p>