newfile()

newfile()#

Create a new file at the specified path.

Prototype

PUBLIC int newfile(
    const char  *path,
    int         mode
);
        

Parameters

Key

Type

Description

path

const char *

The path of the file to create.

mode

int

The permissions mode for the new file.


Return Value

Returns 0 on success, or a negative value on failure.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples