title: Warning comparison between pointer and integer
body: <p>I am getting a warning when I iterate through the character pointer and check when the pointer reaches the null terminator. </p>
  
  <pre><code> const char* message = "hi";
  
   //I then loop through the message and I get an error in the below if statement.
  
   if (*message == "\0") {
    ...//do something
   }
  </code></pre>
  
  <p>The error I am getting is: </p>
  
  <pre><code>warning: comparison between pointer and integer
        ('int' and 'char *')
  </code></pre>
  
  <p>I thought that the <code>*</code> in front of <code>message</code> dereferences message, so I get the value of where message points to? I do not want to use the library function <code>strcmp</code> by the way. </p>