Go to the first, previous, next, last section, table of contents.


_doserrno

Syntax

#include <errno.h>
 
extern int _doserrno;

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.

To interpret the error codes, please refer to your DOS reference.

Portability

not ANSI, not POSIX

Example

 _doserrno = 0;
 fprintf (stdprn, "Hello, world!\r\n\f");
 if (_doserrno == 0x1c)
   fprintf (stderr, "The printer is out of paper!\n");


Go to the first, previous, next, last section, table of contents.