delorie.com/djgpp/doc/libc/libc_187.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <errno.h> extern int _doserrno; |
Whenever a DOS call returns a failure indication, this variable is assigned the value of the error code returned by the failed DOS call.
For a list of the error codes and their short descriptions, see dosexterr.
ANSI/ISO C | No |
POSIX | No |
_doserrno = 0; fprintf (stdprn, "Hello, world!\r\n\f"); if (_doserrno == 0x1c) fprintf (stderr, "The printer is out of paper!\n"); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |