xs_strerror(3)

xs_strerror3

Get error message string

Usage

const char *xs_strerror (int errnum);

Overview

The xs_strerror() function shall return a pointer to an error message string corresponding to the error number specified by the errnum argument. As Crossroads define additional error numbers over and above those defined by the operating system, applications should use xs_strerror() in preference to the standard strerror() function.

Return value

The xs_strerror() function shall return a pointer to an error message string.

Errors

No errors are defined.

Examples

Displaying an error message when the context cannot be initialised.

void *ctx = xs_init (1, 1, 0);
if (!ctx) {
    printf ("Error occurred during xs_init(): %s\n", xs_strerror (errno));
    abort ();
}

Notes

Releases

Unchanged in 3 releases since Debian 8 (Jessie).

  1. 8–10

Authors

The Crossroads documentation was written by Martin Sustrik <[email protected][1]> and Martin Lucina <[email protected][2]>.

From libxs-dev 1.2.0-2 in Debian 10 (Buster). Parsed by carta from the page's man source.