XMSTRINGGETLTOR(3)
β¨ NAME β¨
XmStringGetLtoR β a compound string function that goes looking for a text segment inside the compound string you hand it π
(it's the XmStringGetLtoR(library call) page, bestie, and we're gonna get through it together)
πΈ SYNOPSIS πΈ
#include <Xm/Xm.h>
Boolean XmStringGetLtoR(
XmString string,
XmStringCharSet tag,
char **text);
π DESCRIPTION π
okay so first thing, and I need you to hear me on this one: this function is obsolete π it literally only still exists for compatibility with previous releases, like that group chat you can't leave because of one person. it's been replaced by XmStringUnparse, so if you're writing new code, go there instead, fr fr.
so what does it do? XmStringGetLtoR returns the first text component in the input compound string that's tagged with the tag component you gave it. the returned text is meant to be a NULL-terminated sequence of single byte characters.
and here's the part where you gotta pay attention π if the function returns True, it will allocate space to hold the returned text. the application is responsible for managing that allocated space β that's on you, bestie, not on the library. you can recover the allocated space by calling XtFree. don't forget, or it's giving memory leak energy π
stringβ specifies the compound string. that's the one we're digging through π¦tagβ specifies the font list element tag associated with the text. a value ofXmFONTLIST_DEFAULT_TAGidentifies a locale text segment β¨textβ specifies a pointer to a NULL terminated string
π RETURN π
returns True if the matching text segment can be found π₯ and on return, text will have a NULL terminated byte sequence containing the matched segment. iconic. that's it, that's the whole return value.
π«Ά RELATED π«Ά
and that's the whole page, no cap π this was the XmStringGetLtoR(library call) manual page β library call vibes, straight from the Xm docs, and yes I read the whole thing so you don't have to. go call XtFree when you're done, I'm literally begging π πβ¨
π¦ 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