nix::unistd

Function 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)