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   
Text File  |  1985-05-27  |  297b  |  17 lines

  1. /*    print extended errors */
  2. #include <stdio.h>
  3. #include <dos.h>
  4.  
  5. #define GETXERRFN 0x5900
  6.  
  7. void xerror()
  8. {
  9.     struct REGVAL r;
  10.     
  11.     r.ax = GETXERRFN;
  12.     sysint21(&r, &r);
  13.  
  14.     printf("extended error %x, error class %x, action %x, locus %x\n",
  15.         r.ax, r.bx >> 8, r.bx & 0xff, r.cx >> 8);
  16. }
  17.