title: Character comparison in C fails
body: <p>I'm trying to parse a Fen String <code>(char *starting_fen)</code>, but it doesn't seem to be working.</p>
  <p><code>starting_fen</code>: <code>rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1</code></p>
  <pre class="lang-c prettyprint-override"><code>void init_board(char *starting_fen)
  {
      int rank = 7, file = 0, fen_length = strlen(starting_fen);
  
      for (int i = 0; i &lt; fen_length; i++)
      {
          if (starting_fen[i], &quot;/&quot;) // &lt;-- works for all characters?
          {
              printf(&quot;SYMBOL @ idx %d ==&gt; '%c'\n&quot;, i, starting_fen[i]);
              // file = 0;
              // rank--;
          }
      }
  }
  </code></pre>
  <p>This is my output:</p>
  <pre><code>SYMBOL @ idx 0 ==&gt; 'r'
  SYMBOL @ idx 1 ==&gt; 'n'
  SYMBOL @ idx 2 ==&gt; 'b'
  
  //...
  
  SYMBOL @ idx 53 ==&gt; '0'
  SYMBOL @ idx 54 ==&gt; ' '
  SYMBOL @ idx 55 ==&gt; '1'
  </code></pre>
  <p>I tried using <code>strcmp</code> (<code>if (strcmp(starting_fen[i], &quot;/&quot;))</code>) but got a Segmentation fault...</p>