TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Roy McNeill
from: Paul Edwards
date: 1996-08-31 12:12:56
subject: return 0

ac> and that if the value of the parameter passed to exit() is zero of
ac> EXIT_SUCCESS, an "implementation-defined form of the status successful
ac> termination is returned".  It continues, "If the value of
[the parameter
ac> passed to exit()] is EXIT_FAILURE, an implementation-defined form of the
ac> status unsuccessful termination is returned.  Otherwise the status 
ac> returned
ac> is implementation defined."

ac> So there you go - it's not just convention after all.  :-)

RM> I see. An "implementation-defined" standard...

What are you talking about?  0, EXIT_SUCCESS and EXIT_FAILURE are the ONLY
things you can use.  Anything else is a BUG.  What your compiler does about
that BUG is not something that the standard dwells on.  What's the problem?
 BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.