This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



XStringListToTextProperty(3)                   XLIB FUNCTIONS                   XStringListToTextProperty(3)



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

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

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

       void XFreeStringList(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 a zero status.  Otherwise, it
       returns a nonzero status.  To free the storage for the value field, use XFree.

       The XTextPropertyToStringList function returns a list of strings representing the null-separated ele-ments elements
       ments of the specified XTextProperty structure.  The data in text_prop must be of type STRING and
       format 8.  Multiple elements of the property (for example, the strings in a disjoint text selection)
       are separated by NULL (encoding 0).  The contents of the property are not null-terminated.  If insuf-ficient insufficient
       ficient memory is available for the list and its elements, XTextPropertyToStringList sets no return
       values and returns a zero status.  Otherwise, it returns a nonzero status.  To free the storage for
       the list and its contents, use XFreeStringList.

       The XFreeStringList function releases memory allocated by XmbTextPropertyToTextList, Xutf8TextProper-tyToTextList Xutf8TextPropertyToTextList
       tyToTextList 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), XAllocSizeHints(3X11), XAllocWMHints(3X11), XFree(3X11),
       XSetCommand(3X11), XSetTransientForHint(3X11), XSetTextProperty(3X11), XSetWMClientMachine(3X11),
       XSetWMColormapWindows(3X11), XSetWMIconName(3X11), XSetWMName(3X11), XSetWMProperties(3X11), XSetWM-Protocols(3X11) XSetWMProtocols(3X11)
       Protocols(3X11)
       Xlib - C Language X Interface



X Version 11                                    libX11 1.2.1                    XStringListToTextProperty(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...