News for hackers. Stuff that matters.
Re:Emperor Akihito of Japan Raises Possibility of Leaving Th... by geofft on Tuesday August 09, 2016 @12:09AM (#12252566)
The convention is for UNIX processes to return 0 on success and a non-zero value (often 1) on failure. This means that the UNIX shell "if" statement tests to see if the return value of the program it runs is zero. Therefore, the UNIX "true" command is int main() {return 0;} and the "false" command is int main() {return 1;} -- despite the C convention being the exact opposite.

There are no comments on this comment yet.