Function nix::unistd::ftruncate

source ·
pub fn ftruncate<Fd: AsFd>(fd: Fd, len: off_t) -> Result<()>
Available on crate feature fs only.
Expand description

Truncate a file to a specified length

See also ftruncate(2)