@node _doserrno, dos @subheading Syntax @example #include extern int _doserrno; @end example @subheading Description 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 @ref{dosexterr}. @subheading Portability @portability !ansi, !posix @subheading Example @example _doserrno = 0; fprintf (stdprn, "Hello, world!\r\n\f"); if (_doserrno == 0x1c) fprintf (stderr, "The printer is out of paper!\n"); @end example