XMTEXTFIELDGETSTRING(3)
π NAME π
XmTextFieldGetString β bestie, it's a TextField function that grabs the string value for you β¨
π SYNOPSIS π
#include <Xm/TextF.h>
char * XmTextFieldGetString(
Widget widget);
π¦ DESCRIPTION π¦
okay so XmTextFieldGetString literally reaches into your TextField widget and pulls out its string value. that's the whole job. main character energy, no drama π
but bestie, hear me when i say this: you are the one responsible for freeing the storage associated with that string, and you do it by calling XtFree. not optional. the widget is not gonna clean up after you. you gotta do it yourself π«Ά
widgetβ specifies the TextField widget ID π
also, for the complete definition of TextField and all its associated resources, go read XmTextField(3). it's giving required reading π
πΈ RETURN πΈ
it returns a character pointer to the string value of the TextField widget β¨ and just so you know, that returned value is a copy of the value of the XmNvalue resource. so yeah, that's why you gotta free it (see above, i told you π).
oh and if the length of the TextField widget's string is 0 (zero), it returns an empty string. iconic behaviour tbh π
π RELATED π
go read those too, iykyk π₯
and that's the whole page bestie!! this one came from the XmTextFieldGetString(library call) library call page β mwah, kisses, go free your strings ππ
π¦
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms