🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4949

EXIT_SUCCES != EXIT_FAILURE?

#4949
From: Thomas Padron-McCarthy
Date: Mon, 25 Mar 1996 14:25
18 lines
1103 bytes
Hi!

Many of the students in a C course I teach have started to use
EXIT_SUCCESS and EXIT_FAILURE as return values from functions
(other than main).

I have never used EXIT_SUCCESS and EXIT_FAILURE for anything
else than as the return value from main, and as the argument to exit.

I don't like this new practice, but questions of style are difficult.
So I wonder: Does the standard guarantee that EXIT_SUCCESS and
EXIT_FAILURE are different?

I have looked in my old ANSI X3-159-1989,
but I guess I'm not smart enough to understand it...


Thomas Padron-McCarthy -- tpm@ida.liu.se
Technical Details
Message-ID: <tompa.827763954@news>
Path: arc1-ca.pugleaf.net!news.ifm.liu.se!liuida!tompa

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!news.ifm.liu.se!liuida!tompa
From: tompa@ida.liu.se (Thomas Padron-McCarthy)
Subject: EXIT_SUCCES != EXIT_FAILURE?
X-Nntp-Posting-Host: obel20.ida.liu.se
Message-ID: <tompa.827763954@news>
Summary: Does the standard guarantee that EXIT_SUCCESS != EXIT_FAILURE?
Keywords: EXIT_SUCCESS EXIT_FAILURE guarantee
Sender: news@ida.liu.se
Organization: CIS Dept, Linkoping University, Sweden
X-Newsreader: NN version 6.5.0 #6 (NOV)
Date: Mon, 25 Mar 1996 14:25:54 GMT