Good afternoon, I made a command line utility and another colleague needs a library with similar functions (without command line output, etc.., with only a few parameters, like *buffer, offset and r/w parameter).
I'm thinking about the best way to return errors from the library (a few kind of errors can occur, it can be quite detailed providing some conditions are met).
I'm thinking about returning a pointer to an array with strings containing error messages..
Do you have better idea?