Function nix::unistd::truncate

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

Truncate a file to a specified length

See also truncate(2)