home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l200 / 6.ddi / LIB / ISRAW.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-09-08  |  342 b   |  21 lines

  1. /*    israw -    determine if a file    is a terminal in raw mode 
  2.  
  3.     Copyright (c) 1985 by JMI Software Consultants,    Inc.
  4.  */
  5. #include "acom.h"
  6. #include "host.h"
  7.  
  8. BOOL israw(fd)
  9.     FILE fd;
  10.     {
  11.     REGVAL    r;
  12.  
  13.     r.ax = 0x4400;
  14.     r.bx = fd;
  15.     intdos(&r, &r);
  16.     if (r.dx & ISDEV)
  17.         if (r.dx & (ISCIN |    ISCOT))
  18.             return(YES);
  19.     return(NO);
  20.     }
  21.