Checking return values (was: Trojan Horses, NFS, etc.)
Richard Tobin
richard at aiai.ed.ac.uk
Fri Oct 26 04:59:26 AEST 1990
In article <1990Oct25.075856.4923 at robobar.co.uk> ronald at robobar.co.uk (Ronald S H Khoo) writes:
>For those of you still puzzled: perror() must be called *immediately* after
>the error returns
Or else you must save and restore errno. Is this guaranteed to work?
-- Richard
--
Richard Tobin, JANET: R.Tobin at uk.ac.ed
AI Applications Institute, ARPA: R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin
More information about the Comp.unix.programmer
mailing list