When returning from function main() to the operating system, returning the macro value EXIT_SUCCESS is guaranteed to be equivalent to returning 0. EXIT_FAILURE is system dependent. For IBM's XL C/C++ compilers, EXIT_SUCCESS is defined as 0 and EXIT_FAILURE is defined as 8.
:>: -----Original Message----- :>: From: IBM Mainframe Discussion List [mailto:[email protected]] On :>: Behalf Of Lloyd Fuller :>: Sent: Wednesday, May 08, 2013 6:00 PM :>: To: [email protected] :>: Subject: Re: Return codes :>: :>: And then you have C / C++ that uses RC=1 as the good return code. Any :>: other is :>: bad. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
