home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_02 / mof.c < prev    next >
Text File  |  1991-12-09  |  1KB  |  40 lines

  1.  
  2.  
  3.            /*************************************************************
  4.            *
  5.            *       file c:\lsu\mof.c
  6.            *
  7.            *       Functions: This file contains
  8.            *          my_open
  9.            *
  10.            *       Purpose: This function opens a file. Borland's
  11.            *          Turbo C opens files a little different from
  12.            *          the standard UNIX C. Instead of using this
  13.            *          different method in a number of various files,
  14.            *          the method is placed in this one file. If the
  15.            *          programs are moved to another system, all changes
  16.            *          will be located in this one place.
  17.            *
  18.            *       External Calls:
  19.            *          none
  20.            *
  21.            *       Modifications:
  22.            *          18 June 1987 - created
  23.            *
  24.            ***************************************************************/
  25.  
  26.  
  27. #include "d:\lsu\vision3.h"
  28.  
  29. my_open(file_name)
  30.    char file_name[];
  31. {
  32.    int file_descriptor;
  33.  
  34.    file_descriptor = open(file_name, O_RDWR | O_CREAT | O_BINARY, S_IWRITE);
  35.  
  36.    return(file_descriptor);
  37.  
  38.  
  39. }  /* ends my_open  */
  40.