Obsolete function
Include
<fcntl.h>
Prototype
int creat(const char * filename, mode_t mode)
Arguments
filename | |
mode |
Return Value
On success, creat
returns a file descriptor to the open file; on
error it returns -1 and should set errno
to indicate the
error.
Remarks
This function is implemented as a stub that must be completed to suite the application.
Opens the specified filename for writing, truncating to length zero, and creating it if it does not exist.
Source File
creat.c