Skip Navigation Links
Exit Print View
| Oracle Solaris Cluster Reference Manual Oracle Solaris Cluster 4.1

Search Scope:

- This Document
- Entire Library

### scds_error_string

### , scds_error_string_i18n

- generate an error string from an error code

### Synopsis

    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);

## Description

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.

## Parameters

The following parameters are supported:

error_code

  Error code that is returned by a DSDL function.

## Files

`/usr/cluster/include/rgm/libdsdev.h`

  Include file

`/usr/cluster/lib/libdsdev.so`

  Library

## Attributes

See `attributes`(5) for descriptions of the following attributes:

ATTRIBUTE TYPE | ATTRIBUTE VALUE
--- | ---
Availability | ha-cluster/developer/api
Interface Stability | Evolving

## See Also

`scha_calls`(3HA), `setlocale`(3C), `attributes`(5)

Copyright © 2000, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices |