-
The standard C libraries, for reasons which will be left to your imagination, use '0' to indicate success and non-zero to indicate failure.
I remember it this way: routine returns error number. If returns 0 => no errors. It makes sense for C, any kind of TRUE value means some error. But you can have only one kind of success, so OK == 0.
If you looking at return value this way, it makes sense, right?
pmas
To make errors is human. But to make million errors per second, you need a computer.