View Single Post
Old Oct 30th, 2005, 3:03 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
It is, of course, purely convention. I can write a program that performs perfectly, and return the value 7,356. Nevertheless, I always return a 0 (EXIT_SUCCESS) for success and almost always 1 (EXIT_FAILURE) for anything else. While Tempest is absolutely correct, it isn't something one can bank on. I see jillions of things that return nothing. The executive usually replaces that nothing with something, but you can't know what it is, always. Check the documentation for the application, but be aware that someone who isn't doing it conventionally will probably not even address the question.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote