exit status <-> portable code

Yitzchak Scott-Thoennes sthoenna@efn.org
Tue Nov 11 23:54:00 GMT 2003


On Tue, Nov 11, 2003 at 05:01:16PM +0100, Hannu E K Nevalainen <garbage_collector@telia.com> wrote:
> int main(...) {
>   int success=RETURN_FAIL;
> 
>   if (all_OK)
>     success=RETURN_OK;
> 
>   return success;
> }
> 
> Q: Is there anything within Cygwin (or Linux, Net*, U*X, whatever... that
> can be transferred to Cygwin) that can be used for the same purpose?

There is EXIT_SUCCESS and EXIT_FAILURE in stdlib.h

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list