Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

truncate, truncate64 - set file to specified length

&pagelevel(4)&pagelevel

Syntax

#include <unistd.h>

int truncate (const char *path, off_t length);
int truncate64 (const char *path, off64_t length);

Descripeion

See ftruncate().
truncate() truncates the file specified in path to length bytes.