XMTEXTGETSTRINGWCS(3)
π XmTextGetStringWcs β bestie, it's a Text function π
okay so this is XmTextGetStringWcs, a library call from the Xm family, and it's the one that grabs you a copy of the wide character string value of a Text widget. yes queen, wide chars, we're being fancy with it β¨
π SYNOPSIS π
#include <Xm/Text.h>
wchar_t * XmTextGetStringWcs(
Widget widget);
like. that's it. that's the whole vibe. one include, one function, one arg π«Ά
πΈ DESCRIPTION πΈ
XmTextGetStringWcs</ppurple> retrieves a copy of the wide character string value of the Text widget. not the original, bestie β a copy. which means the storage associated with that string is your problem now. the application is responsible for freeing the storage associated with the string by calling XtFree. don't forget. i'm literally begging you. free it. it's giving memory leak if you don't π
widgetβ Specifies the Text widget ID π
for a complete definition of Text and all its associated resources, go peek at XmText(3) β that's the lore drop π
β RETURN β
it returns the wide character string value of the Text widget. slay.
and bestie, small but crucial detail: if the length of the Text widget's string is 0 (zero), the function returns an empty string. so like, it's not returning NULL for that case, it's returning the empty-string situation. no cap. note it down π
π¦ RELATED π¦
(the non-wide-char sibling, iykyk π)
that's the whole page, bestie β go forth and free your strings π
this was XmTextGetStringWcs, a library call straight out of the Xm docs, and yes the footer really does just say XmTextGetStringWcs(library call) β periodt π
β¨
π¦ 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