1/// Validates a C function's result. 2pub fn validate(status: libc::c_int) { 3 if status != 0 { 4 unsafe { libc::exit(1) } 5 } 6}