Function nix::unistd::truncate[][src]

pub fn truncate<P: ?Sized + NixPath>(path: &P, len: off_t) -> Result<()>

Truncate a file to a specified length

See also truncate(2)