File: auxiliaries.c

package info (click to toggle)
haskell-x11 1.4.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 568 kB
  • ctags: 53
  • sloc: haskell: 734; ansic: 108; makefile: 79; sh: 43
file content (11 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (19)
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;
}