NAME
XGetErrorText — obtain a description of error code.
SYNOPSIS
XGetErrorText(display, code, buffer_return, length) Display ∗display; int code; char ∗buffer_return; int length;
ARGUMENTS
displaySpecifies a connection to an X server; returned from XOpenDisplay().
codeSpecifies the error code for which you want to obtain a description.
buffer_return
Returns a pointer to the error description text.
lengthSpecifies the size of the buffer.
DESCRIPTION
XGetErrorText() obtains textual descriptions of errors. XGetErrorText() returns a pointer to a null-terminated string describing the specified error code with length length. The returned text is in the encoding of the current locale. This string is copied from static data and therefore may be freed. This routine allows extensions to the Xlib library to define their own error codes and error strings that can be accessed easily.
For more information, see Volume One, Chapter 3, Basic Window Program.
SEE ALSO
XDisplayName(), XGetErrorDatabaseText(), XSetAfterFunction(), XSetErrorHandler(), XSetIOErrorHandler(), XSynchronize().
Xlib Reference Manual