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.

For a list of the error codes and their short descriptions, see section dosexterr.

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.