#include <stddef.h>
Go to the source code of this file.
◆ parserutils_error
◆ parserutils_error
| Enumerator |
|---|
| PARSERUTILS_OK | |
| PARSERUTILS_NOMEM | |
| PARSERUTILS_BADPARM | |
| PARSERUTILS_INVALID | |
| PARSERUTILS_FILENOTFOUND | |
| PARSERUTILS_NEEDDATA | |
| PARSERUTILS_BADENCODING | |
| PARSERUTILS_EOF | |
◆ parserutils_error_from_string()
Convert a string representation of an error name to a parserutils error code
- Parameters
-
| str | String containing error name |
| len | Length of string (bytes) |
- Returns
- Error code, or PARSERUTILS_OK if unknown
◆ parserutils_error_to_string()
Convert a parserutils error code to a string
- Parameters
-
| error | The error code to convert |
- Returns
- Pointer to string representation of error, or NULL if unknown.