home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
C-FDC
/
XERROR.C
< prev
Wrap
Text File
|
1985-05-27
|
297b
|
17 lines
/* print extended errors */
#include <stdio.h>
#include <dos.h>
#define GETXERRFN 0x5900
void xerror()
{
struct REGVAL r;
r.ax = GETXERRFN;
sysint21(&r, &r);
printf("extended error %x, error class %x, action %x, locus %x\n",
r.ax, r.bx >> 8, r.bx & 0xff, r.cx >> 8);
}