| XStringListToTextProperty(3) | Library Functions Manual | XStringListToTextProperty(3) |
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);
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.
The XFreeStringList function releases memory allocated by XmbTextPropertyToTextList, Xutf8TextPropertyToTextList and XTextPropertyToStringList and the missing charset list allocated by XCreateFontSet.
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;
| X Version 11 | XLIB FUNCTIONS |