Truncates a file.
fn truncate(file: &CStr, len: i64) -> i32
The path of the file to truncate.
The new length of the file.
Returns success or an error value.
truncate(2)