HelpPC 2.10 Quick Reference Utility Copyright 1991 David Jurgens

       TC:  int creatnew( const char *fname, int attr )
       MSC: unsigned creatnew( const char *fname, unsigned attr, int fh )

       - prototype in io.h, also include dos.h

       - creates new file filename with file attribute attr:
       - attr consists of a combination of the following:

         FA_RDONLY   set read only attribute
         FA_HIDDEN   set hidden attribute
         FA_SYSTEM   set system attribute

       - returns nonnegative integer if OK, else -1
       - file is created set to _fmode (O_TEXT or O_BINARY)
       - TC: returns nonnegative integer if OK, else -1
         MSC: return 0 if ok, or DOS error code

Esc or Alt-X to exit creatnew Home/PgUp/PgDn/End ←↑↓→
Converted to HTML in 2006 by Timo Bingmann