title: What is the proper function for comparing two C-style strings?
body: <p>So I have a dilemma. I need to compare two C-style strings and I searched for the functions that would be the most appropiate:</p>
  
  <pre><code>memcmp   //Compare two blocks of memory (function)
  strcmp   //Compare two strings (function )
  strcoll  //Compare two strings using locale (function)
  strncmp  //Compare characters of two strings (function)
  strxfrm  //Transform string using locale (function)
  </code></pre>
  
  <p>The first one I think is for addresses, so the idea is out. 
  The second one sounds like the best choice to me, but I wanna hear feedback anyway.
  The other three leave me clueless. </p>