Re:Emperor Akihito of Japan Raises Possibility of Leaving Th...
by Alterlife on Monday August 08, 2016 @10:56PM
(#12252285)
I feel dumb :-/ ... Could you explain why it's funnier if you know UNIX?
[ Parent
| on HN ]
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.