From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ron Michael Khu Subject: Re: exit(42) Date: Fri, 24 Sep 2004 20:25:17 +0800 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <4154122D.3030403@hq.ntsp.nec.co.jp> References: <20040924115759.6133.qmail@web52908.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20040924115759.6133.qmail@web52908.mail.yahoo.com> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Ankit Jain Cc: linux prg it does have a benefit.... it could be useful to another app that is trying to check the return value or exit status of your application like in bash programming... many bash scripts rely on the exit values of programs... Ankit Jain wrote: >well do any body know what does this mean? > >exit(42) > >and also when we say exit(0) or exit(1) then there is >anyway to catch these values > >also when we return from main fn then what is the >benfit? > >does it have any utilisation? > >thanks > >ankit > >________________________________________________________________________ >Yahoo! Messenger - Communicate instantly..."Ping" >your friends today! Download Messenger Now >http://uk.messenger.yahoo.com/download/index.html >- >To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html > > > >