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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat84.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <dos.h>
  5. #include <process.h>
  6. #include <stdio.h>
  7.  
  8. void main()
  9. {
  10.    char filename[80];
  11.    union REGS inregs, outregs;
  12.    struct SREGS segregs;
  13.  
  14.    printf("╜╨┐ΘñJ└╔«╫ªW║┘ : ");
  15.    gets(filename);
  16.    inregs.h.ah = 0x43;
  17.    inregs.h.al = 0x21;
  18.    inregs.x.dx = FP_OFF(filename);
  19.    segregs.ds  = FP_SEG(filename);
  20.    int86x(0x21, &inregs, &outregs, &segregs);
  21.    printf("└╔«╫ %s ñº─▌⌐╩¼░ : %X\n",filename,outregs.x.cx);
  22. }
  23.