🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3258

Re: Must main return a value?

#3258
From: Doug Gwyn
Date: Sat, 29 Jun 1991 05:17
14 lines
1216 bytes
In article <1991Jun29.002410.27632@aero.org> lmiller@aero.org (Lawrence H. Miller) writes:
>The question one might ask of a standards body is why this is "undefined"
>and not "implementation defined," since it clearly involves the program's
>interaction with its host.

I don't think you understand what these terms mean as used in the C
standard.  Either that, or you really believe that an implementation
could document what would happen for every program that returned
garbage instead of a deliberate value, where the garbage is NOT
specified in the program (unlike the case for the part of 4.10.4.3
that you quoted).

Basically, this was specified to cause undefined behavior because
that's exactly what it does.
Technical Details
Message-ID: <16582@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!snorkelwacker.mit.edu!hsdndev!cmcl2!adm!smoke!gwyn
References: <7830001@hpwrce.HP.COM> <16575@smoke.brl.mil> <1991Jun29.002410.27632@aero.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!snorkelwacker.mit.edu!hsdndev!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: Must main return a value?
Message-ID: <16582@smoke.brl.mil>
Date: 29 Jun 91 05:17:05 GMT
References: <7830001@hpwrce.HP.COM> <16575@smoke.brl.mil> <1991Jun29.002410.27632@aero.org>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 14