pub fn truncate<P: ?Sized + NixPath>(path: &P, len: off_t) -> Result<()>
#[cfg(not(any(target_os = "redox", target_os = "fuchsia")))]
Truncate a file to a specified length
See also truncate(2)