XMSTRINGCREATE(3)
π XmStringCreate β bestie we're making a compound string β¨
okay so real talk, this one is a library call from the Xm family, and it's the lil glow-up moment where a plain ol' C string becomes a whole compound string. iconic behavior honestly π
πΈ SYNOPSIS πΈ
#include <Xm/Xm.h>
XmString XmStringCreate(
char *text,
char *tag);
π¦ DESCRIPTION π¦
XmStringCreate creates a compound string with two components: the text and a font list element tag. That's it, that's the whole vibe β two little pieces, one slay result π
and like, important: the function will allocate space to hold the returned compound string. so when your app is done with it and no longer needs it? bestie you must call XmStringFree. do not ghost it, do not leak it, that's not the move π
textβ specifies aNULL-terminated string to be used as the text component of the compound string. β¨tagβ specifies the tag component to be associated with the given text. The valueXmFONTLIST_DEFAULT_TAGidentifies a locale text segment. π
lowkey a memory-management situation here β allocate with this, free with XmStringFree, no cap π«Ά
β RETURN β
Returns a new compound string. brand new, fresh out the box, main character energy π
π RELATED π
okay so the whole extended fam, they're all linked below, go say hi π¦
XmFontList(3)XmFontListAdd(3)XmFontListAppendEntry(3)XmFontListCopy(3)XmFontListCreate(3)XmFontListEntryCreate(3)XmFontListEntryFree(3)XmFontListEntryGetFont(3)XmFontListEntryGetTag(3)XmFontListEntryLoad(3)XmFontListFree(3)XmFontListFreeFontContext(3)XmFontListGetNextFont(3)XmFontListInitFontContext(3)XmFontListNextEntry(3)XmFontListRemoveEntry(3)XmString(3)XmStringBaseline(3)XmStringByteCompare(3)XmStringCompare(3)XmStringConcat(3)XmStringCopy(3)XmStringCreateLocalized(3)XmStringCreateLtoR(3)XmStringCreateSimple(3)XmStringDirection(3)XmStringDirectionCreate(3)XmStringDraw(3)XmStringDrawImage(3)XmStringDrawUnderline(3)XmStringEmpty(3)XmStringExtent(3)XmStringFree(3)XmStringFreeContext(3)XmStringGetLtoR(3)XmStringGetNextComponent(3)XmStringGetNextSegment(3)XmStringHasSubstring(3)XmStringHeight(3)XmStringInitContext(3)XmStringLength(3)XmStringLineCount(3)XmStringNConcat(3)XmStringNCopy(3)XmStringPeekNextComponent(3)XmStringSegmentCreate(3)XmStringSeparatorCreate(3)XmStringTable(3)- and
XmStringWidth(3). πΈ
and that's the page bestie!! this was XmStringCreate(library call) β you read the whole thing, so proud of you, go free your strings and hydrate πβ¨ππ¦
π¦ 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