| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Date: | Tue, 11 Nov 2003 15:54:34 -0800 |
| From: | Yitzchak Scott-Thoennes <sthoenna AT efn DOT org> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: exit status <-> portable code |
| Message-ID: | <20031111235433.GB3696@efn.org> |
| References: | <NGBBLLIAMFLGJEOAJCCEOECKDGAA DOT garbage_collector AT telia DOT com> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <NGBBLLIAMFLGJEOAJCCEOECKDGAA.garbage_collector@telia.com> |
| User-Agent: | Mutt/1.4i |
| Organization: | bs"d |
On Tue, Nov 11, 2003 at 05:01:16PM +0100, Hannu E K Nevalainen <garbage_collector AT telia DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |