1 #!./tcc -run -L/usr/X11R6/lib -lX11
3 /* Yes, TCC can use X11 too ! */
7 int main(int argc
, char **argv
)
12 display
= XOpenDisplay("");
14 fprintf(stderr
, "Could not open X11 display\n");
17 printf("X11 display opened.\n");
18 screen
= XScreenOfDisplay(display
, 0);
19 printf("width = %d\nheight = %d\ndepth = %d\n",
23 XCloseDisplay(display
);