cvs commit: src/usr.bin/rev

Jason Smethers jason at smethers.net
Tue Dec 14 19:00:34 PST 2004


Joerg Sonnenberger wrote:
It's not about supporting it or not. It works fine either way.
The advantage is that exit() pretty much means exactly that, exit the
program and not return from some mysterious function. The advantage of
return is that it is the normal way of leaving a stack frame. Both
have there uses.
So main() is a mysterious function?


It's nice when debugging code to be able to tell how many operations
already failed :)
Except in this case the number of operations is irrelivant. You get 1 or 
0 back from the program. You may as well add the code yourself if you 
ever need to debug it.

- Jason





More information about the Commits mailing list