what's the best way to get rid of the \0 at the end of a string literal?
<p>I'm trying to do something like</p>

<pre><code>strcmp(argv[3], "stdout")
</code></pre>

<p>however, in the command line I don't want to type </p>

<pre><code>stdout\0
</code></pre>

<p>what's the best way to get rid of the \0 at the end of a string literal?</p>

<p>Thanks!</p>

<p>update:</p>

<p>Thanks guys. I found what's wrong with my code... I should have used</p>

<pre><code>strcmp(argv[3], "stdout") == 0
</code></pre>

<p>Thanks @Nicol Bolas</p>
