🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3691

Re: EXIT_FAILURE problem

#3691
From: Paul Eggert
Date: Thu, 10 Aug 1995 04:50
14 lines
828 bytes
To get back to the original point,
if you want extremely wide portability, be careful with

	#include <stdlib.h>

	#ifndef EXIT_FAILURE
	#define EXIT_FAILURE 1
	#endif

because it isn't portable to old buggy hosts where <stdlib.h>
#defines EXIT_FAILURE to be 0.  Example: Sony NEWS-OS Release 4.0C.

(That same <stdlib.h> also defines EXIT_SUCCESS to be 0.
How equanimious of it!)
Technical Details
Message-ID: <40c366$jh5@light.twinsun.com>
Path: arc1-ca.pugleaf.net!in1.uu.net!twinsun!not-for-mail
References: <jbundyDCw7uo.9sz@netcom.com> <danpop.807723059@rscernix> <danpop.807963533@rscernix> <40bl1s$9bo@caip.rutgers.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in1.uu.net!twinsun!not-for-mail
From: eggert@twinsun.com (Paul Eggert)
Newsgroups: comp.std.c
Subject: Re: EXIT_FAILURE problem
Date: 9 Aug 1995 21:50:14 -0700
Organization: Twin Sun Inc, El Segundo, CA, USA
Message-ID: <40c366$jh5@light.twinsun.com>
References: <jbundyDCw7uo.9sz@netcom.com> <danpop.807723059@rscernix> <danpop.807963533@rscernix> <40bl1s$9bo@caip.rutgers.edu>
NNTP-Posting-Host: light.twinsun.com