"" is not NULL

buck%nrl-css at sri-unix.UUCP buck%nrl-css at sri-unix.UUCP
Wed Feb 1 09:01:28 AEST 1984


From:  Joe Buck <buck at nrl-css>

> Uh, write(2,"",1) writes the first byte of your address space, which may
> be zero if you are lucky.  I remember a long discussion a while ago on
> the subject of *0 and what is found there.  I don't remember the outcome
> or positions, but I don't think it is a particularly swift idea in general.
>
> --Ray

Not true! The author is confusing "" with NULL. "" gives a character
string with one byte; that one byte is 0. NULL is 0. A lot of Unix code
is full of assumptions that *NULL is legal and gives '\0'; however,
that is a completely different issue.


-Joe



More information about the Comp.unix mailing list