XTextPropertyToStringList
Syntax
Status XTextPropertyToStringList(text_prop, list_return, \
count_return)
XTextProperty *text_prop;
char ***list_return;
int *count_return;
Arguments
text_prop
| Specifies the
XTextProperty
structure to be used.
|
list_return
| Returns a list of null-terminated character strings.
|
count_return
| Returns the number of strings.
|
Description
The
XTextPropertyToStringList()
function returns a list of strings representing the null-separated elements
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 insufficient 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().
See also
XAllocClassHint(),
XAllocIconSize(),
XAllocSizeHints(),
XAllocWMHints(),
XFree(),
XFreeStringList(),
XSetCommand(),
XSetTransientForHint(),
XSetTextProperty(),
XSetWMClientMachine(),
XSetWMColormapWindows(),
XSetWMIconName(),
XSetWMName(),
XSetWMProperties(),
XSetWMProtocols(),
XStringListToTextProperty(),
"
Converting String Lists".
Christophe Tronche, [email protected]