Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c5db54f118
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.208 kb
#include<X11/Xlib.h>
/* 成功返回 1,否则返回 0 */
int test_display(const char* name){
Display *dpy;
if((dpy = XOpenDisplay(name)) == NULL){
return 0;
}
XCloseDisplay(dpy);
return 1;
}
Jump to Line
Something went wrong with that request. Please try again.