help needed to download ascii null from unix

romkey%mit-borax at sri-unix.UUCP romkey%mit-borax at sri-unix.UUCP
Wed Feb 1 09:08:39 AEST 1984


From:  John L. Romkey <romkey at mit-borax>


Doing a write(2,"",1) shouldn't write the first byte of your address
space! The compiler should cons up a string which consists of a '\0'
character and push the address of the string as the second argument in
the write. Since the system call was told to write one byte, it'll
write a '\0' (or 0 or NULL or whatever you like).
						- John Romkey
						  romkey at mit-borax



More information about the Comp.unix mailing list