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

XmTextFieldGetString — A TextField function that accesses the string value "XmTextFieldGetString" "TextField functions" "XmTextFieldGetString"

#include <Xm/TextF.h>
char * XmTextFieldGetString(
Widget widget);

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

Specifies the TextField widget ID

For a complete definition of TextField and its associated resources, see XmTextField(3).

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

XmTextField(3) and XmTextFieldGetStringWcs(3).