home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT20.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  795 b   |  28 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat20.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <conio.h>
  6. #include <bios.h>
  7.  
  8. void main()
  9. {
  10.    unsigned status;
  11.  
  12.    printf("╜╨╢}▒╥⌐╬├÷│¼▒z¬║ªL¬φ╛≈ÑH½K└╦┤·¿Σ¬¼║A.  ╜╨½÷Ñ⌠ñ@┴Σ─~─≥\n");
  13.    getch();
  14.    status = _bios_printer(_PRINTER_STATUS, 0, 0);
  15.    if (status & 0x01)
  16.       printf("ªL¬φ╛≈«╔╢í╡▓º⌠.\n");
  17.    if (status & 0x08)
  18.       printf("I/O ┐∙╗~.\n");
  19.    if (status & 0x10)
  20.       printf("ªL¬φ╛≈ñw┐∩⌐w.\n");
  21.    if (status & 0x20)
  22.       printf("¿Sª│»╚▒iñF.\n");
  23.    if (status & 0x40)
  24.       printf("░eÑX.\n");
  25.    if (status & 0x80)
  26.       printf("ªL¬φ╛≈Ñ╝│B⌐≤ªú╕Lñº¬¼║A.\n");
  27. }
  28.