title: Compare equality of char[] in C
body: <p>I have two variables: </p>
  
  <pre><code>char charTime[] = "TIME";
  char buf[] = "SOMETHINGELSE";
  </code></pre>
  
  <p>I want to check if these two are equal... using <code>charTime == buf</code> doesn't work.</p>
  
  <p>What should I use, and can someone explain why using <code>==</code> doesn't work?</p>
  
  <p>Would this action be different in C and C++?</p>