Libparserutils
|
Go to the source code of this file.
Functions | |
const char * | parserutils_error_to_string (parserutils_error error) |
Convert a parserutils error code to a string. | |
parserutils_error | parserutils_error_from_string (const char *str, size_t len) |
Convert a string representation of an error name to a parserutils error code. |
parserutils_error parserutils_error_from_string | ( | const char * | str, |
size_t | len ) |
Convert a string representation of an error name to a parserutils error code.
str | String containing error name |
len | Length of string (bytes) |
Definition at line 59 of file errors.c.
References len, PARSERUTILS_BADENCODING, PARSERUTILS_BADPARM, PARSERUTILS_EOF, PARSERUTILS_FILENOTFOUND, PARSERUTILS_INVALID, PARSERUTILS_NEEDDATA, PARSERUTILS_NOMEM, and PARSERUTILS_OK.
const char * parserutils_error_to_string | ( | parserutils_error | error | ) |
Convert a parserutils error code to a string.
error | The error code to convert |
Definition at line 18 of file errors.c.
References PARSERUTILS_BADENCODING, PARSERUTILS_BADPARM, PARSERUTILS_EOF, PARSERUTILS_FILENOTFOUND, PARSERUTILS_INVALID, PARSERUTILS_NEEDDATA, PARSERUTILS_NOMEM, and PARSERUTILS_OK.