Truncates a file to a specified length. Format #include <unistd.h> int ftruncate (int filedes, off_t length);