forked from Lephenixnoir/gint
7 lines
121 B
C
7 lines
121 B
C
|
#include <fcntl.h>
|
||
|
|
||
|
int creat(char const *path, mode_t mode)
|
||
|
{
|
||
|
return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode);
|
||
|
}
|