Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XGetErrorTe(3x) — HP-UX ANSI C A.10.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

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

XGetErrorDatabaseText(), XSetAfterFunction(), XSetErrorHandler(), XSetIOErrorHandler(), XSynchronize(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026