HP C/iX Reference Manual (31506-90011)

128 Chapter8
Compiling and Running HP C/iX Programs
Running HP C/iX Programs
.
.
exit(7);
}
or
main() {
.
.
return(7);
}
Either of the above examples sets CJCW to the value of 7 on program termination.
If a C program calls the C library routine abort, the system job control word JCW is set to
FATAL and a diagnostic message is printed to $STDLIST. CJCW is set to a nonzero value.
Arithmetic Traps
C/iX programs execute with all arithmetic traps disabled. The C program startup routines
call the ARITRAP intrinsic with an argument of zero to disable the traps.