An OCaml library to get exit status as declared in `stdlib.h`
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
271 B

let _ =
Format.printf "succes code is %d@." Exit.success_code;
Format.printf "failure code is %d@." Exit.failure_code;
if Exit.success_code <> 0 || Exit.failure_code <> 1 then begin
Format.printf "not POSIX !@.";
Exit.failure ()
end;
Exit.success ()