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

  1. /*    da_open(filename, len) opens the named file for direct access.
  2.  
  3.     Copyright (c) 1983 by James F. Gimpel
  4.     Copyright (c) 1983, 1984, 1985 by JMI Software Consultants, Inc.
  5.  */
  6. #include "acom.h"
  7. #include "host.h"
  8.  
  9. FILE da_open(filename, len)
  10.     TEXT *filename;
  11.     INT len;
  12.     {
  13.     INT n;
  14.  
  15.     if ((n = da_special(filename, YES)) < 0)
  16.         n = open(filename, D_OPEN, S_IWRITE);
  17.     if (n >= 0)
  18.         da_autoclos(n);
  19.     return(n);
  20.     }
  21.