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