🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3986

Re: EXIT_FAILURE problem

#3986
From: Keith Thompson
Date: Wed, 13 Sep 1995 23:44
16 lines
1399 bytes
In <jeremy.810996048@suede.sw.oz.au> jeremy@sw.oz.au (Jeremy Fitzhardinge) writes:
> This is getting pretty silly.  Why have the standard define something
> completely undefined?  It would be impossible for a conforming program
> to use such a sys_exit() without knowing what OS_RET_TYPE is, which
> means it can't be used unless a specific OS is targeted, which means it
> would be non-portable.  There's no point in having the standard define
> a feature which can't be used portably.

The system() function is defined in the standard (7.10.4.5), and it
(very nearly) can't be used portably.

-- 
Keith Thompson (The_Other_Keith)  kst@thomsoft.com (kst@alsys.com still works)
TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products
10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718
Because I'm weird enough, I'm sick enough, and doggone it, people fear me!
Technical Details
Message-ID: <DEvBA5.HEF@thomsoft.com>
Path: arc1-ca.pugleaf.net!in2.uu.net!tandem!telesoft!kst
References: <42nsuq$bon@elf.bsdi.com> <1995Sep11.221423.6651@forte.com> <jeremy.810996048@suede.sw.oz.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!in2.uu.net!tandem!telesoft!kst
From: kst@thomsoft.com (Keith Thompson)
Subject: Re: EXIT_FAILURE problem
X-Nntp-Posting-Host: pulsar
Message-ID: <DEvBA5.HEF@thomsoft.com>
Originator: kst@pulsar
Sender: news@thomsoft.com (USENET News Admin @flash)
Organization: Thomson Software Products, San Diego, CA, USA
References: <42nsuq$bon@elf.bsdi.com> <1995Sep11.221423.6651@forte.com> <jeremy.810996048@suede.sw.oz.au>
Date: Wed, 13 Sep 1995 23:44:29 GMT