Pike v8.0 release 1738

Method Stdio.Fd()->truncate()


Method truncate

bool truncate(int length)

Description

Truncate a file.

Truncates the file to the specified length length.

Returns

Returns 1 on success, and 0 (zero) on failure.

See also

open()