@node truncate, io @subheading Syntax @example #include int truncate(const char *file, off_t size); @end example @subheading Description This function truncates @var{file} to @var{size} bytes. @subheading Return Value Zero on success, nonzero on failure. @subheading Portability @portability !ansi, !posix @subheading Example @example truncate("/tmp/data.txt", 400); @end example