creat — create a new file
Contents
Description
Thisinterfaceismadeobsoleteby:open(2).
The creat() function is the same as:
open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
History
The creat() function appeared in Version 6 AT&T UNIX.
Debian June 2, 1993 CREAT(2)
Library
Standard C Library (libc, -lc)
Name
creat — create a new file
See Also
open(2)
Synopsis
#include<fcntl.h>intcreat(constchar*path, mode_tmode);
