nix::unistd

Function ftruncate

Source
pub fn ftruncate(fd: RawFd, len: off_t) -> Result<()>
Expand description

Truncate a file to a specified length

See also ftruncate(2)