Synopsis

#include <fcntl.h>

creat(const char *pathname, mode_t mode);

Description

Creates a new file at specified path with permissions specified in mode

Return value

Returns the value 0 upon successful completion, otherwise the value -1 is returned.

Errors