gcc 4.4.4 c89
What is the standard way to null terminate a string? When I use the NULL I get a warning message.
NULL
*dest++ = 0; *dest++ =
From the comp.lang.c FAQ: http://c-faq.com/null/varieties.html
In essence: NULL (the preprocessor macro for the null pointer) is not the same as NUL (the null character).
NUL