www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/24/19:00:30

From: "Mike Wahler" <mkwahler AT mkwahler DOT net>
Newsgroups: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp,comp.programming
Subject: Re: Undertaking a programming journey
Date: Tue, 24 Oct 2000 14:51:55 -0700
Organization: MindSpring Enterprises
Lines: 31
Message-ID: <8t4vo5$1lp$1@nntp9.atl.mindspring.net>
References: <MOqE5.2173$W31 DOT 29870 AT news1 DOT online DOT no> <8scg36$gsm$1 AT nnrp1 DOT deja DOT com> <39E9CF07 DOT 785C0C0F AT eton DOT powernet DOT co DOT uk> <8scls9$kth$1 AT nnrp1 DOT deja DOT com> <rgnjusgvadc5q9d53jticrrgdthc9af3lv AT 4ax DOT com> <39E9FAD5 DOT DE1FDAE4 AT eton DOT powernet DOT co DOT uk> <8sdrub$h7u$1 AT nnrp1 DOT deja DOT com> <39EAA40B DOT 31B0CA89 AT eton DOT powernet DOT co DOT uk> <39f5ff14 DOT 90960240 AT news DOT esatclear DOT ie>
NNTP-Posting-Host: 3f.32.61.b4
Mime-Version: 1.0
X-Server-Date: 24 Oct 2000 21:42:29 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Russell Wallace <rwallace AT esatclear DOT ie> wrote in message
news:39f5ff14 DOT 90960240 AT news DOT esatclear DOT ie...
> On Mon, 16 Oct 2000 07:45:31 +0100, Richard Heathfield
> <binary AT eton DOT powernet DOT co DOT uk> wrote:
> >Schildt is probably the primary reason that so many C programmers think
> >exit(1) is portable.
>
> Don't think I've read any of Schildt's books, but I'll admit I always
> did think exit(1) was portable.  Why isn't it, and what should be used
> instead?

The only return (exit) values defined by the standard are:

a) EXIT_SUCCESS
b) EXIT_FAILURE
c) The integer value zero (0)

The 'EXIT_' macros are defined in
<stdlib.h>

-Mike


>
> --
> "To summarize the summary of the summary: people are a problem."
> Russell Wallace
> mailto:rwallace AT esatclear DOT ie
> http://www.esatclear.ie/~rwallace

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019