XMTEXTGETSTRING(3)
β¨ XmTextGetString β¨
okay bestie so this one is a library call from the Xm Text era, and it's literally the "gimme the string" button π the whole function is just XmTextGetString, and she's here to hand you the string value of a Text widget. no cap.
πΈ NAME πΈ
XmTextGetString β a Text function that accesses the string value π«Ά
π SYNOPSIS π
#include <Xm/Text.h>
char * XmTextGetString(
Widget widget);
π DESCRIPTION π
so XmTextGetString goes and accesses the string value of the Text widget. that's it, that's the job, and she ate π
β οΈ okay but listen β the application is responsible for freeing the storage associated with the string by calling XtFree. like, you have to clean up after her. she is not going to do it for you. it's giving main character who leaves the dishes in the sink. don't be that app. free it. π
widgetβ specifies the Text widget ID β¨
and for a complete definition of Text and its associated resources, go look at XmText(3). iykyk π
π₯ RETURN π₯
she returns a character pointer to the string value of the text widget, periodt.
- this returned value is a copy of the value of the
XmNvalueresource π (a copy, bestie, not a live wire β don't go thinking you're editing the widget through it) - she returns an empty string if the length of the Text widget's string is
0(zero) π like, zero chars, zero drama, just an empty string
π RELATED π
go read those too, they're iconic β
and that's the whole page, bestie π¦ this was the XmTextGetString library call manual page, brought to you by the Xm Text widget corner of the universe, and yes she was born in the era of library calls and she's still slaying π mwah, 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