Subject: Re: Answer to "which echo.c"
To: None <>
From: Peter Seebach <>
List: current-users
Date: 12/09/1999 20:44:56
In message <>, David Maxwell writes:
>Mike Pelley also pointed out that just because our crt0 calls
>exit(), doesn't mean that you can expect every other C 
>environment to do so. (And NetBSD normally encourages portability :-)

Actually, you can be 100% confident that every C environment in the world
treats 'return n' in main the same as 'exit(n)'[*][**].

[*]  Except for what happens if there were, say, automatic variables somewhere
that were being used as stdio buffers.
[**]  This is because the language spec says so, and anything failing to do
this isn't a C implementation, it's some other crufty thing.[***]
[***]  Not to imply that C is crufty.