Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PDErrMsg.Xmu.z() — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XQueryTree(XS)

XGetWindowAttributes(XS)

XGetGeometry(XS)


 XmuPrintDefaultErrorMessage(Xmu)                   X Version 11 (Release 5)
                                                              6 January 1993


 Name

    XmuPrintDefaultErrorMessage  - prints error message

 Syntax


    cc  . . .  -lXmu


    #include <X11/Xmu/Error.h>

    int XmuPrintDefaultErrorMessage(dpy, event, fp)
          Display *dpy;
          XErrorEvent *event;
          FILE *fp;

    int XmuSimpleErrorHandler(dpy, errorp)
          Display *dpy;
          XErrorEvent *errorp;


 Arguments


    dpy     Specifies the connection to the X server.

    errorp  Specifies the error.

    event   Specifies the error.

    fp      Specifies where to print the error message.


 Description

    The XmuPrintDefaultErrorMessage function prints an error message,
    equivalent to Xlib's default error message for protocol errors.  It
    returns a non-zero value if the caller should consider exiting, otherwise
    it returns 0.  This function can be used when you need to write your own
    error handler, but need to print out an error from within that handler.

    The XmuSimpleErrorHandler function ignores errors for BadWindow errors
    for XQueryTree and XGetWindowAttributes, and ignores BadDrawable errors
    for XGetGeometry; it returns 0 in those cases.  Otherwise, it prints the
    default error message, and returns a non-zero value if the caller should
    consider exiting, and 0 if the caller should not exit.

 See also

    XQueryTree(XS), XGetWindowAttributes(XS), XGetGeometry(XS)
    Xlib - C Language X Interface


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