Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!buck@nrl-css From: buck%nrl-css@sri-unix.UUCP Newsgroups: net.unix Subject: "" is not NULL Message-ID: <16225@sri-arpa.UUCP> Date: Tue, 31-Jan-84 18:01:28 EST Article-I.D.: sri-arpa.16225 Posted: Tue Jan 31 18:01:28 1984 Date-Received: Tue, 7-Feb-84 12:33:14 EST Lines: 16 From: Joe Buck> 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