XStringListToTextProperty, XTextPropertyToStringList,
       XFreeStringList, XTextProperty - convert string lists and
       text property structure


SYNTAX

       Status XStringListToTextProperty(list, count,
       text_prop_return)
             char **list;
             int count;
             XTextProperty *text_prop_return;

       Status XTextPropertyToStringList(text_prop, list_return,
       count_return)
              XTextProperty *text_prop;
              char ***list_return;
              int *count_return;

       void XFreeStringList(list)
             char **list;


ARGUMENTS

       count     Specifies the number of strings.

       count_return
                 Returns the number of strings.

       list      Specifies the list of strings to be freed.

       list      Specifies a list of null-terminated character
                 strings.

       list_return
                 Returns a list of null-terminated character
                 strings.

       text_prop Specifies the XTextProperty structure to be
                 used.

       text_prop_return
                 Returns the XTextProperty structure.


DESCRIPTION

       The XStringListToTextProperty function sets the specified
       XTextProperty to be of type STRING (format 8) with a value
       representing the concatenation of the specified list of
       null-separated character strings.  An extra null byte
       (which is not included in the nitems member) is stored at
       the end of the value field of text_prop_return.  The
       strings are assumed (without verification) to be in the
       STRING encoding.  If insufficient memory is available for
       the new value string, XStringListToTextProperty does not
       set any fields in the XTextProperty structure and returns
       tents, use XFreeStringList.

       The XFreeStringList function releases memory allocated by
       XmbTextPropertyToTextList, Xutf8TextPropertyToTextList and
       XTextPropertyToStringList and the missing charset list
       allocated by XCreateFontSet.


STRUCTURES

       The XTextProperty structure contains:

       typedef struct {
            unsigned char *value;/* property data */
            Atom encoding;      /* type of property */
            int format;         /* 8, 16, or 32 */
            unsigned long nitems;/* number of items in value */
       } XTextProperty;


SEE ALSO

       XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocSize-
       Hints(3X11), XAllocWMHints(3X11), XFree(3X11), XSetCom-
       mand(3X11), XSetTransientForHint(3X11), XSetTextProp-
       erty(3X11), XSetWMClientMachine(3X11), XSetWMColormapWin-
       dows(3X11), XSetWMIconName(3X11), XSetWMName(3X11),
       XSetWMProperties(3X11), XSetWMProtocols(3X11)
       Xlib - C Language X Interface



X Version 11               Release 6.4                          1