| www.delorie.com/djgpp/doc/libc-2.01/libc_661.html | search |
#include <unistd.h> int truncate(const char *file, off_t size);
This function truncates file to size bytes.
Zero on success, nonzero on failure.
ftruncate("/tmp/data.txt", 400);
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |