|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Cluster Reference Manual Oracle Solaris Cluster 4.0|
- generate an error string from an error code
cc [flags…] -I /usr/cluster/include file -L /usr/cluster/lib -l dsdev #include <rgm/libdsdev.h> const char *scds_error_string(scha_err_t error_code);
const char *scds_error_string_i18n(scha_err_t error_code);
The scds_error_string() and scds_error_string_i18n() functions generate a short string that describes an error from an error code that is returned by a DSDL function. Strings that are returned by scds_error_string() are displayed in English. Strings that are returned by scds_error_string_i18n() are displayed in the native language that is specified by the LC_MESSAGES locale category. See setlocale(3C). Invalid error codes return NULL.
The pointer that is returned by this function points to memory that belongs to the DSDL. Do not modify this memory.
The following parameters are supported:
Error code that is returned by a DSDL function.
See attributes(5) for descriptions of the following attributes: