help needed to download ascii null from unix
sdyer%bbn-unix at sri-unix.UUCP
sdyer%bbn-unix at sri-unix.UUCP
Wed Feb 1 10:51:04 AEST 1984
From: Steve Dyer <sdyer at bbn-unix>
No, Doug is right and you are wrong.
write(fh, "", 1)
writes an ASCII NUL onto file handle fh. '""' (whew! got that?) resolves
to an address of a byte which contains NUL.
This is different from
write(fh, NULL, 1)
or equivalently,
write(fh, 0, 1)
which writes out the contents of address 0. Does everyone remember what
'setf' looked like on PDP-11 systems?
&PNP,
Steve Dyer
More information about the Comp.unix
mailing list