Mail Archives: djgpp/1996/10/19/08:05:44
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 -