XMSTRINGCOMPONENTCREATE(3)
π XmStringComponentCreate β the glow-up page β¨
okay bestie, welcome to XmStringComponentCreate β she's a library call and she's here to build you arbitrary components, no cap π
πΈ NAME πΈ
XmStringComponentCreate β a compound string function that creates arbitrary components π¦
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
XmString XmStringComponentCreate(
XmStringComponentType c_type,
unsigned int length,
XtPointer value);
π DESCRIPTION π
So here's the tea: XmStringComponentCreate creates a brand-new XmString component of type c_type, and it's carrying value inside it π. But lowkey β if value is invalid for that particular component type, this function fails and returns NULL. Not dramatic, just facts. π
c_typeβ specifies the type of component to be created. (yes queen, you gotta pick one π)lengthβ specifies the length in bytes ofvalue. And listen, this has to be precisely the length of the value string, not including any trailing null characters. Not approximately. Not "close enough". Precisely. fr fr πvalueβ specifies the value to be used in the creation of the component.
π‘ heads up: go check theXmStringComponentType(3)reference page for the full list of possibleXmStringcomponent types β that's your menu of options, iykyk π
π«Ά RETURN π«Ά
If value is invalid for c_type, she fails and returns NULL. π Otherwise? This function returns a new compound string, periodt. β¨
And when the application no longer needs the returned compound string, the application should call XmStringFree. Clean up after yourself bestie, we don't leave compound strings lying around π§Ήπ
π RELATED π
XmString(3)XmStringGetNextTripleXmStringComponentTypeXmStringFree(3)
and that's the whole vibe β this page is from the library call manual set, XmStringComponentCreate(library call), filed right there in your man pages, bestie. go forth and create components π
π¦β¨
π¦ 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