Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: Re: exit status <-> portable code Message-ID: <20031111235433.GB3696@efn.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: bs"d On Tue, Nov 11, 2003 at 05:01:16PM +0100, Hannu E K Nevalainen 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/