XMLISTDELETEITEM(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

✨ XmListDeleteItem ✨

okay bestie, gather round, because we're diving into the library call corner of the manual and it's giving iconic πŸŽ€


πŸ’– NAME πŸ’–

XmListDeleteItem β€” a List function that deletes an item from the list. yes that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

#include <Xm/List.h>
void XmListDeleteItem(
Widget widget,
XmString item);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: XmListDeleteItem deletes the first item in the list that matches item. one item, first match, done. no cap.

⚠️ and if the item doesn't exist? a warning message appears. not me getting yelled at by the List for asking for something that was never there 😭
  • widget β€” specifies the ID of the List from whose list an item is deleted. she needs to know which list we're operating on, obviously 🫢
  • item β€” specifies the text of the item to be deleted from the list. and lowkey important: if item appears more than once in the List, only the first occurrence is matched. so if you've got duplicates, bestie, only the first one gets got. the rest are still there living their lives πŸ’€

for a complete definition of List and its associated resources, see XmList(3). iykyk, go read it, it's the main character of this whole saga πŸ‘‘



and that's the whole page, periodt ✨ brought to you by the XmListDeleteItem(library call) manual page, aka the library call section doing what it does best πŸ’œ love that for her, love that for us, go delete some items responsibly πŸ§šπŸ’–