Doug Cutting wrote:
The spec says:

/** All APIs set errno to meaningful values */

So callers should always check errno after each call. Whether this is the best way to handle errors in C can be debated, but an error mechanism was in fact specified.
I don't much like errno, but if we are using it we should follow the normal convention that applications only check errno when a return value indicates that there was an error. So it does not need to be modified when there isn't an error.

- David

Reply via email to