From: "John M. Aldrich" 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Jon Slaughter 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. 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 * 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