10 size_t len = strlen(str) + 1;
11 char *dup = malloc(len);
14 memcpy(dup, str, len);
33 return error ? error->
error : NULL;
38 return error ? error->
help : NULL;
43 return error ? error->
code : 0;
int argxcGetErrorCode(const ArgxcError *error)
static char * stringDuplicate(const char *str)
const char * argxcGetErrorHelp(const ArgxcError *error)
ArgxcError argxcCreateErrorSimple(const char *msg, const char *help)
const char * argxcGetErrorMessage(const ArgxcError *error)
ArgxcErrorPair argxcGetErrorPair(const ArgxcError *error)