XMFONTLISTCOPY(3)
π NAME π
XmFontListCopy β bestie, this is a font list function that copies a font list. That's it. That's the whole job. Copying. Iconic behaviour, honestly. π
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
XmFontList XmFontListCopy(
XmFontList fontlist);
π¦ DESCRIPTION π¦
Okay so XmFontListCopy makes a brand-new font list, and that new list is made up of the contents of the fontlist argument. Like, you hand it a list, it hands you back a twin. No cap. β¨
fontlistβ bestie, this specifies the font list you want copied. That's the one going under the photocopier. π«Ά
π RETURN π
So here's the vibe check on what you get back:
- If
fontlistisNULL, you getNULLback. That's it. Nothing copied, nothing allocated, we move on. π - Otherwise? You get a new font list, and it allocates space to hold that font list. Slay. β¨
β οΈ But listen, and this part is important: the application is responsible for managing the allocated space. That memory is YOURS now, bestie. It does not manage itself. Main character energy comes with main character responsibilities. π
Good news though β you can recover that allocated space whenever you're done by calling XmFontListFree. So the cleanup is literally one function call away. Free the list, free the memory, hydrate, move on. π
πΈ RELATED πΈ
Go read these too, they're part of the same friend group:
That's the whole page, bestie β from the library call shelf of the manual, no date on this one so we're keeping it timeless. Mwah. πβ¨π§
π¦ 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