~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/DisName.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
/* $XFree86$ */
31
31
 
32
32
/* XDisplayName.c */
33
 
/* 
 
33
/*
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
38
 
 * messages. 
39
 
 *
40
 
 * 
 
38
 * messages.
 
39
 *
 
40
 *
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 );