DOKK / manpages / debian 12 / libmotif-dev / XmTextGetString.3.en
XmTextGetString(3) Library Functions Manual XmTextGetString(3)

XmTextGetString — A Text function that accesses the string value "XmTextGetString" "Text functions" "XmTextGetString"

#include <Xm/Text.h>
char * XmTextGetString(
Widget widget);

XmTextGetString accesses the string value of the Text widget. The application is responsible for freeing the storage associated with the string by calling XtFree.

Specifies the Text widget ID

For a complete definition of Text and its associated resources, see XmText(3).

Returns a character pointer to the string value of the text widget. This returned value is a copy of the value of the XmNvalue resource. Returns an empty string if the length of the Text widget's string is 0 (zero).

XmText(3) and XmTextGetStringWcs(3).