NCEPLIBS-w3emc  2.11.0
errexit.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Exit with a return code.
3 C> @author Mark Iredell @date 1998-06-04
4 
5 C> Exit with a return code.
6 C>
7 C> Program history log:
8 C> - 1998-06-04 Mark Iredell
9 C> - 1999-01-26 Stephen Gilbert
10 C> - Changed to use XLF utility routine exit_(n) instead of exit(n).
11 C> exit_(n) will return the proper value (n must be 4 byte int)
12 C> to the sh/ksh shell status variable $? ($status for csh)
13 C> on the IBM SP.
14 C>
15 C> @param[in] IRET Integer return code.
16 C>
17 C> @author Mark Iredell @date 1998-06-04
18 
19  SUBROUTINE errexit(IRET)
20  INTEGER IRET
21  INTEGER(4) JRET
22  jret=iret
23  CALL exit(jret)
24  END
subroutine errexit(IRET)
Exit with a return code.
Definition: errexit.f:20