DOKK / manpages / debian 10 / libxs-dev / xs_strerror.3.en
XS_STRERROR(3) Crossroads I/O Manual XS_STRERROR(3)

xs_strerror - get error message string

const char *xs_strerror (int errnum);

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.

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

No errors are defined.

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

xs(7)

The Crossroads documentation was written by Martin Sustrik <sustrik@250bpm.com[1]> and Martin Lucina <martin@lucina.net[2]>.

1.
sustrik@250bpm.com
mailto:sustrik@250bpm.com
2.
martin@lucina.net
mailto:martin@lucina.net
06/13/2012 Crossroads I/O 1.2.0