XMLISTDELETEPOS(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay so bestie, <rainbow>XmListDeletePos</rainbow> is a List function that deletes an item from a list at a specified position. that's the whole vibe. it's giving "yeet that row out of there." ✨

it lives in the library call manual, btw β€” that's where you'll find her πŸ‘‘


✨ SYNOPSIS ✨

#include <Xm/List.h>
void XmListDeletePos(
Widget widget,
int position);

no cap, that's literally the entire call signature. two args, one dream 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

XmListDeletePos deletes an item at a specified position. that's it, that's the job πŸ’…

but listen β€” if the position you gave her doesn't exist, a warning message appears. so like, don't try to delete position 400 in a list of three. she will call you out. 😭

here's the breakdown of the args, bestie:

  • widget β€” Specifies the ID of the List from which an item is to be deleted. basically "which list are we deleting from, queen?"
  • position β€” Specifies the position of the item to be deleted. and the numbering here is iconic in the most unhinged way:
    • A value of 1 indicates that the first item in the list is deleted πŸ₯‡
    • a value of 2 indicates that the second item is deleted πŸ₯ˆ
    • and so on πŸ’«
    • A value of 0 (zero) indicates that the last item in the list is deleted 🏁
not me finding out 0 means last and not first 😭 that's the whole twist. 0 = the end of the list. periodt.

For a complete definition of List and its associated resources, see XmList(3). (yes, she's got lore. go read it. iykyk πŸ“š)



mwah πŸ’‹ that's the whole page, bestie. this little love letter is from the library call manual β€” XmListDeletePos(library call), the one and only β€” and it's giving timeless classic energy. now go forth and delete responsibly πŸŽ€πŸ’œ