home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff384.lzh / NorthC / Example1.LZH / clibs / UNIX / creat.c < prev    next >
C/C++ Source or Header  |  1990-08-30  |  473b  |  24 lines

  1. /*
  2.   (c) 1990 S.Hawtin.
  3.   Permission is granted to copy this file provided
  4.    1) It is not used for commercial gain
  5.    2) This notice is included in all copies
  6.    3) Altered copies are marked as such
  7.  
  8.   No liability is accepted for the contents of the file.
  9.  
  10.   creat.c    within        Public Domain UNIX.lib
  11.  
  12. */
  13.  
  14. #include <types.h>
  15. #include "unix.h"
  16.  
  17. APTR
  18. creat(name,mode)
  19.     char *name;
  20.     int  mode;
  21.    {/* Just open with create */
  22.     return(open(name,mode | O_CREAT));
  23.     }
  24.