Article View: comp.std.c
Article #2012errno and stdio routines
From: cepek
Date: Tue, 20 Nov 1990 21:34
Date: Tue, 20 Nov 1990 21:34
9 lines
941 bytes
941 bytes
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 ________________________________
Technical Details
Message-ID:
<1990Nov20.153415.452@vixvax.mgi.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!bionet!agate!shelby!msi.umn.edu!vixvax.mgi.com!cepekShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!bionet!agate!shelby!msi.umn.edu!vixvax.mgi.com!cepek From: cepek@vixvax.mgi.com Newsgroups: comp.std.c Subject: errno and stdio routines Message-ID: <1990Nov20.153415.452@vixvax.mgi.com> Date: 20 Nov 90 21:34:15 GMT Organization: Management Graphics, Inc. Lines: 9