XMDATAFIELDGETSTRING(3)
π XmDataFieldGetString π
okay bestie, welcome to the library call corner of the man pages, where we're talking about XmDataFieldGetString β a DataField function that accesses the string value. yes, that's the whole name up top, no notes, we love a descriptive queen π
β¨ NAME β¨
XmDataFieldGetString β a DataField function that accesses the string value π
π¦ SYNOPSIS π¦
#include <Xm/DataF.h>
char * XmDataFieldGetString(
Widget widget);
like... that's it. two lines. the way she's so unbothered π
πΈ DESCRIPTION πΈ
So XmDataFieldGetString accesses the string value of the DataField widget. that's her whole job and she does it flawlessly, no cap β¨
β οΈ MAJOR note, bestie, listen up: the application is responsible for freeing the storage associated with the string by calling XtFree. like, you have to do it. she hands you the string and then she's done, it's your problem now π don't come crying to me about memory leaks, i warned you fr fr.
widget β specifies the DataField widget ID π«Ά
For a complete definition of DataField and its associated resources, see XmDataField(3). go read it, i'll wait π§
π RETURN π
She returns a character pointer to the string value of the DataField widget. β¨
And here's the tea: this returned value is a copy of the value of the XmNvalue resource. a copy. not the original. so yeah β free it, like we said. π«
She returns an empty string if the length of the DataField widget's string is 0 (zero). empty string! not NULL! that distinction is literally the whole vibe check π
π RELATED π
(the Wcs one is her wide-character sister, iconic family honestly π―)
k that's the whole page, bestie!! this was the XmDataFieldGetString(library call) page, filed under the library call fam, and yes the footer says the exact same thing as the header because man pages love a symmetrical moment π anyway ily, go free your strings, mwah πβ¨π
π¦ 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