#include <unistd.h> int ftruncate(int file, off_t where);
This function truncates file at where length. This only works if the file is closed right after this call.
Zero for success, nonzero for failure.
not ANSI, not POSIX
int x = open("data", O_WRONLY); ftruncate(x, 1000); close(x);
Go to the first, previous, next, last section, table of contents.