Quote:
|
Originally Posted by Sane
However... I understand that void is generally bad practice. I've learned to return (0); instead of voiding a function. Is there any information I am missing, or different sides to that rule of thumb?
|
Having void functions is fine, but note that almost everything in the C standard library returns whether it failed or succeeded. In languages such as C# this is not the case, that's because if something failed an exception would be raised. Of course if the power went out, the computer is off, and it's likely you'd be able to tell in some kind of manner.