Eschew obfuscation...
*ip++ = 0;
*cp++ = '\0';
On 30 Jan 2013, at 8:52 AM, Antonio Diaz Diaz <[email protected]> wrote:
>> Finally, equating the null character '\0' with (int) 0 is asking for
>> trouble...
>
> Why?
>
> The C standard states clearly that:
> 1) An integer character constant has type int.
> 2) The value of the escape sequence '\0' is 0.
>
> So they are equivalent.
>
>
> Regards,
> Antonio.
_______________________________________________
bug-ed mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-ed