XMLISTGETMATCHPOS(3)
β¨ NAME β¨
XmListGetMatchPos β a List function that returns all instances of an item in the list π (it's from the library call manual, bestie, we're in the library section, iykyk)
πΈ SYNOPSIS πΈ
#include <Xm/List.h>
Boolean XmListGetMatchPos(
Widget widget,
XmString item,
int **position_list,
int *position_count);
π¦ DESCRIPTION π¦
Okay so XmListGetMatchPos is a Boolean function that hands you back an array of positions where a specified item is found in a List. Like, you're looking for one thing and it's telling you everywhere that thing is living. Obsessed. π
Here's the tea on the args:
widgetβ the ID of the List widget. that's your girl, that's who you're interrogating πitemβ the item you're searching for. the one, the moment, the main character β¨position_listβ returns an array of positions at which the item occurs in the List. And listen, the counting starts at 1 for the first item, 2 for the second item, and so on forever and ever. When the return value isTrue,XmListGetMatchPosallocates memory for this array β and the caller is responsible for freeing this memory. π Yes bestie, you. The caller can recover the allocated memory by callingXtFree.position_countβ returns the number of elements in theposition_list. just how many matches we found, bestie π
lowkey important: for a complete definition of List and its associated resources, go see XmList(3). no cap, that's where the lore lives.
π RETURN π
Returns True if the specified item is present in the list, and False if it is not. that's it, that's the vibe check π«Ά
π RELATED π
and that's the whole page, bestie β this was XmListGetMatchPos(library call), coming to you straight from the library call manual π§ go forth, free your XtFree memory, and slay β¨π
π¦ 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