SYNOPSIS

const char *xs_strerror (int errnum);

DESCRIPTION

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.

EXAMPLE

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

RELATED TO xs_strerror…

xs(7)

AUTHORS

The Crossroads documentation was written by Martin Sustrik <\m[blue][email protected]\m[]\s-2\u[1]\d\s+2> and Martin Lucina <\m[blue][email protected]\m[]\s-2\u[2]\d\s+2>.

NOTES