Re: strcpy - my implementation
CBFalconer said:
With what? With Keith's claim to prefer one style over the other? If so,
what makes you think you know better than he does which style he prefers?
Or are you disagreeing with his claim that the value of c by itself isn't
just a true or false value? If so, please explain why it isn't also a
numeric value.
What has that to do with what he said? Here, you are not disagreeing with
something he said, but with something he did not say.
--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
CBFalconer said:
Keith Thompson wrote:
... snip ...
>
I disagree.
>>
>>
>For example, if I'm examining the value of a character, the
>following are equivalent:
> if (c) { ... }
> if (c != '\0') { ... }
>I prefer to write the latter, because the value of c by itself
>isn't just a true or false value, but the result of the "!="
>operator is.
>For example, if I'm examining the value of a character, the
>following are equivalent:
> if (c) { ... }
> if (c != '\0') { ... }
>I prefer to write the latter, because the value of c by itself
>isn't just a true or false value, but the result of the "!="
>operator is.
I disagree.
what makes you think you know better than he does which style he prefers?
Or are you disagreeing with his claim that the value of c by itself isn't
just a true or false value? If so, please explain why it isn't also a
numeric value.
The (c) expression worries only about whether the
character is or is not something with a zero value.
character is or is not something with a zero value.
something he said, but with something he did not say.
--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Comment