On , Mathieu Bouchard (1:163/215.42@fidonet) wrote:
> NULL is reserved for pointers; i often use 0 instead, though. I'm not
> sure whether it is actually desirable that i recommend using 0,
> though... :-)
Mathieu...
Actually, NULL is obsolescent in C++ - the standard says to simply use 0
instead for a null pointer. The rest of your message is correct in suggesting
the use of '\0' to represent ASCII NUL as being clearer than 0 and certainly
more correct than NULL.
--- QM v1.00
---------------
* Origin: MicroFirm : Down to the C in chips (1:106/2000.6)
|