Function ftruncate

Source
pub unsafe fn ftruncate(fd: int, length: off_t) -> Result<int>
Expand description

Truncate a file to a specified length.