XMTABLISTCOPY(3)
π XmTabListCopy π
okay bestie, gather round, because we're talking about XmTabListCopy from the library call crew β a lil convenience function that creates a new tab list from an existing list. yes, it's a copy-paste but make it β¨fancyβ¨.
β¨ NAME β¨
XmTabListCopy β a convenience function that creates a new tab list from an existing list π
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
XmTabList XmTabListCopy(
XmTabList tablist,
int offset,
Cardinal count);
β¨ DESCRIPTION β¨
so here's the tea π: XmTabListCopy creates a new tab list consisting of a copy of a portion of the contents of the tablist argument. it doesn't take the whole thing if you don't want it to β nope, it starts copying at the specified offset value of the tab list and copies count values. main character energy, honestly.
tablistβ Specifies a tab list to be copied. πoffsetβ Specifies where to start copying. A value of0(zero) indicates begin at the beginning, a value of1indicates to skip the first tab, and so on. A negative indicates to begin counting backwards from the end. A value of-1indicates to start copying from the last tab. yes bestie, it counts backwards too, we love a flexible queen πcountβ Specifies the number of tabs to copy. A value of0(zero) indicates to copy all elements from the starting point to the end (beginning ifoffsetis negative) of the tab list. so0is basically "give me everything from here, no cap" π«Ά
β¨ RETURN β¨
okay so here's the important bit, don't skip it π:
If tablist is NULL, this function returns NULL. Otherwise, this function returns a newly allocated XmTabList.
β οΈ If the function does allocate an XmTabList, then the application is responsible for managing the allocated space. that's your problem now, bestie π
The application can recover the allocated space by calling XmTabListFree. so like, clean up after yourself, periodt π§
β¨ RELATED β¨
go read those too, iykyk π
XmTabListCopy(library call) β that's the source/version and date line, and yes we're folding it into the sign-off because we're cute like that π mwah, go free your tab lists, love u, bye πβ¨π¦
π¦ 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