| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | return 0 |
Hi andrew > There's a loose convention (not a rule) that says you return 0 for > normal termination, and non-zero values for abnormal termination. ac> The C Standard says that ac> 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 returned ac> is implementation defined." ac> So there you go - it's not just convention after all. :-) I see. An "implementation-defined" standard... Cheers --- PPoint 1.88* Origin: Silicon Heaven (3:711/934.16) SEEN-BY: 711/808 934 @PATH: 711/934 |
|
| 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™.