ARGOBOTS
dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
|
This group is for Error. More...
Functions | |
int | ABT_error_get_str (int err, char *str, size_t *len) |
Retrieve a string of an error code and its length. More... | |
This group is for Error.
int ABT_error_get_str | ( | int | err, |
char * | str, | ||
size_t * | len | ||
) |
Retrieve a string of an error code and its length.
ABT_error_get_str()
returns a zero-terminated string of the error code err
through str
and its length in bytes through len
.
If str
is not NULL
, the user must be responsible for passing str
that has enough space to save "the length of the string + 1" bytes of characters. If str
is NULL
, str
is not updated.
If len
is not NULL
, this routine sets the length of the string to len
. If len
is NULL
, len
is not updated.
'\0'
. For example, the length of "Hello world"
is 11.ABT_ERR_OTHER
is returned if err
is not a valid error code.ABT_ERR_INV_ARG
is returned if err
is not a valid error code. ABT_ERR_OTHER
is returned if err
is not a valid error code.ABT_ERR_INV_ARG
is returned if err
is not a valid error code.[in] | err | error code |
[out] | str | error string |
[out] | len | length of string in bytes |