Error Codes
API design rule: error codes alone are not a reasonable way to report errors. You need a mechanism that can return a helpful string. Like exceptions in most languages, or GError in C. You can return an error code also, if appropriate. A helpful string does NOT mean some generic string form of the error […]