| cvs.gedasymbols.org/djgpp/doc/libc/libc_830.html | search | 
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
#include <unistd.h> int truncate(const char *file, off_t size);  | 
This function truncates file to size bytes.
Zero on success, nonzero on failure.
| ANSI/ISO C | No | 
| POSIX | No | 
truncate("/tmp/data.txt", 400);
 | 
| webmaster | delorie software privacy | 
| Copyright © 2004 | Updated Apr 2004 |