XMSTRINGCREATELTOR(3)
β¨ XmStringCreateLtoR β¨
okay bestie, welcome to the XmStringCreateLtoR(library call) page π it's a compound string function, and yes it makes a compound string, we love a self-explanatory queen π
πΈ NAME πΈ
XmStringCreateLtoR β a compound string function that creates a compound string. she does exactly what it says on the tin, no cap π
π SYNOPSIS π
#include <Xm/Xm.h>
XmString XmStringCreateLtoR(
char *text,
char *tag);
π¦ DESCRIPTION π¦
okay so first thing, and I need you to hear me on this one: this function is obsolete π it's literally just here for compatibility with previous releases, hanging around like that one ex who never fully leaves the group chat. she's been replaced by XmStringGenerate. periodt.
so what does she do? XmStringCreateLtoR creates a compound string with two components: text and a tag component. that's the whole vibe, two ingredients, iconic.
here's the lil party trick: the function scans for \n characters in the text π and when it finds one, the text up to that point gets put into a segment, followed by a separator component. it's giving "chop it at the newline, bestie."
no final separator component is appended to the end of the compound string. like, the last one? doesn't get a separator. that's just the rules π«Ά
the direction component defaults to left-to-right. and β important β this function assumes that the encoding is single byte rather than multibyte, so don't come at her with multibyte text, she will simply not cope π
also, the function will allocate space to hold the returned compound string. that space is now your problem, bestie β the application is responsible for managing the allocated space π you can recover it by calling XmStringFree. please actually call it, I'm begging.
textβ specifies aNULL-terminated string to be used as the text component of the compound string. this is the actual words, the content, the main character β¨tagβ specifies the tag component to be associated with the given text. the valueXmFONTLIST_DEFAULT_TAGis retained for compatibility with previous releases, because we simply cannot let go of the past around here π
π RETURN π
returns a new compound string. brand new, fresh out the box, slay π
π RELATED π
XmStringCreate(3) and XmStringGenerate(3) β go read those too, they're the friend group π
mwah, that's the whole page!! this was the XmStringCreateLtoR(library call) manual page, brought to you by the library call girlies β go forth and free your compound strings πΈπ
π¦
π¦ where this page comes from
- 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