On Wed, 23 Jan 2002, Andy Isaacson wrote:

> On Wed, Jan 23, 2002 at 11:24:11AM -0800, Mark Vojkovich wrote:
> > int main()
> > {
> >     Display *dpy;
> >     dpy = XOpenDisplay('\0');  /* $DISPLAY connection */
> 
> That can't be right.  Make it XOpenDisplay(""); instead.
> 

  You are mistaken.  From the man page on XOpenDisplay.

       display_name
                 Specifies the hardware display name, which
                 determines the display and communications domain
                 to be used.  On a POSIX-conformant system, if
                 the display_name is NULL, it defaults to the
                 value of the DISPLAY environment variable.


   '\0' is NULL.  So is 0.  I'm not sure about "".

                        Mark.

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to