www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/19/08:05:44

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: errno?
Date: Fri, 18 Oct 1996 20:57:15 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 24
Message-ID: <3268519B.B95@cs.com>
References: <32679C3B DOT 539F AT iamerica DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp104.cs.com
Mime-Version: 1.0
To: Jon Slaughter <lobo AT iamerica DOT net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jon Slaughter wrote:
> 
> can someone tell me how to errno?

Umm... huh?  This question makes no sense at all.  Do you want to know
how to _use_ errno?  It's real simple:  once any i/o function has
failed, you can test errno to determine what the error that occurred
was.  <errno.h> defines the standard error codes as macros, and you can
use the 'perror()' library function to automatically print an error
message based on the contents of errno.  RTFM.

Please ask more specific questions.

-- 
John M. Aldrich <fighteer AT cs DOT com>                      

* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
  causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
  again.
* It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019