General Functions

tifiles_get_error

TIEXPORT2 int TICALL tifiles_error_get(int number, char **message)

Attempt to match the message corresponding to the error number. The returned string must be freed when no longer needed.

number :
error number (see file_err.h for list).
message :
a newly glib allocated string which contains corresponding error *message.
Return value :
0 if error has been caught, the error number otherwise (propagation).

tifiles_error_free

TIEXPORT2 int TICALL tifiles_error_free(char *message)

Free the given message string allocated by tifiles_error_get();

message :
a message previously allocated by tifiles_error_get()
Return value :
0 if the argument was valid and the message was freed, nonzero otherwise.

Return to the main index