34
34
* Returns the name of the display XOpenDisplay would use. This is better
35
35
* than just printing the "display" variable in a program because that
36
36
* could be NULL and/or there could be an environment variable set.
37
37
* This makes it easier for programmers to provide meaningful error
41
41
* For example, this is used in XOpenDisplay() as
42
42
* strncpy( displaybuf, XDisplayName( display ), sizeof(displaybuf) );
43
43
* if ( *displaybuf == '\0' ) return( NULL );