cl_errmsg routine
The cl_errmsg routine takes a status code returned by Clinfo and returns the text for that error code.
Syntax
char *cl_errmsg (int status)Parameters
| Item | Description |
|---|---|
| status | A cluster information error status. |
Status codes
A null-terminated error string.
For example, the string:
"Invalid status"if the status parameter does not describe a valid cluster error code.
Example
char *msg;
msg = cl_errmsg(CLE_BADARGS);
if (strcmp(msg, "Invalid status") != 0) {
printf("CLE_BADARGS means %s", msg);
} else {
printf("Can't lookup CLE_BADARGS");
}