errno and stdio routines
cepek at vixvax.mgi.com
cepek at vixvax.mgi.com
Wed Nov 21 08:34:15 AEST 1990
I would like to get some system-dependent error information back when I
call fopen() or other "stdio.h routines". I had hopes that fopen() would
set errno, and I could then use perror(). K&RII is pretty non-committal
about errno (B1.7 and B4). Our Hayden Books set lists some routines
which set errno, but most are "math.h routines". ANSI must have allowed
for fopen(), fread(), fscanf(), etc. to return (better than "boolean")
error status, didn't they? Can someone please tell me how? Thanks.
________________________________ Mike Cepek ________________________________
More information about the Comp.std.c
mailing list