File: auxiliaries.c

package info (click to toggle)
haskell-x11 1.10.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,392 kB
  • sloc: haskell: 761; ansic: 160; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <X11/X.h>
#include <X11/Xlib.h>

int defaultErrorHandler(Display *d, XErrorEvent *ev)
{
    char buffer[1000];
    XGetErrorText(d,ev->error_code,buffer,1000);
    printf("Error: %s\n", buffer);
    return 0;
}