XGetErrorText

Syntax

XGetErrorText(display, code, buffer_return, length)
      Display *display;
      int code;
      char *buffer_return;
      int length;

Arguments

display Specifies the connection to the X server.
code Specifies the error code for which you want to obtain a description.
buffer_return Returns the error description.
length Specifies the size of the buffer.

Description

The XGetErrorText() function copies a null-terminated string describing the specified error code into the specified buffer. The returned text is in the encoding of the current locale. It is recommended that you use this function to obtain an error description because extensions to Xlib may define their own error codes and error strings.

See also

XDisplayName(), XGetErrorDatabaseText(), XOpenDisplay(), XSetErrorHandler(), XSetIOErrorHandler(), XSynchronize(), "Using the Default Error Handlers".
Christophe Tronche, ch@tronche.com