This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: exit status <-> portable code
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/