HELPMAKE Help (helpmake.hlp) (
Table of Contents; 
Topic list)
 
   
  
    Important Notice
  
  
    The pages on this site contain documentation for very old MS-DOS software,
    purely for historical purposes.
    If you're looking for up-to-date documentation, particularly for programming,
    you should not rely on the information found here, as it will be woefully
    out of date.
  
 
 RTF: Example
 ◄Rich Text Format►                          ◄Up► ◄Contents► ◄Index► ◄Back►
─────RTF: Example───────────────────────────────────────────────────────────
 
     {rtf0
     \pard >> open\par
     {\b Include:}   <fcntl.h>, <io.h>, <sys\\types.h>, <sys\\stat.h>\par
     \par
     {\b Prototype:}  int open(char *path, int flag[, int mode]);\par
             oflag: O_APPEND  O_BINARY  O_CREAT  O_EXCL  O_RDONLY\par
                    O_RDWR    O_TEXT    O_TRUNC  O_WRONLY\par
                    (can be joined by |)\par
             pmode: S_IWRITE  S_IREAD   S_IREAD | S_IWRITE\par
     \par
     {\b Returns:}    a handle if successful, or -1 if not.\par
                 errno:  EACCES, EEXIST, EMFILE, ENOENT\par
     \par
     {\b See also:}   {\ul Example}{\v open.ex},\par
     {\ul Template}{\v open.tp}, access, chmod, close,
      creat, dup, dup2, fopen, sopen, umask\par
     }
                                    -♦-