delorie.com/djgpp/doc/libc/libc_187.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_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 dosexterr.

Portability

ANSI/ISO C No
POSIX No

Example

 
 _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