logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

creat — create a new file

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);

See Also