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

✨ XmListDeleteItemsPos ✨

okay bestie, welcome to XmListDeleteItemsPos β€” it's a List function from the Xm library, and it deletes items from the list starting at the given position. that's the whole vibe. it's a library call, it lives in a man page, and it's about to be your new fave little deletion gremlin πŸ¦‹


πŸ“– SYNOPSIS

#include <Xm/List.h>
void XmListDeleteItemsPos(
Widget widget,
int item_count,
int position);
ngl, that's the whole signature. no return value, no drama, just vibes and item removal πŸ’…

🌸 DESCRIPTION

XmListDeleteItemsPos deletes the specified number of items from the list starting at the specified position. that's it. that's the function. she's simple, she's direct, she does exactly one thing and she does it well. main character energy fr fr πŸ‘‘

here's the tea on each parameter:

  • widget β€” Specifies the ID of the List from whose list an item is deleted. yes bestie, she's asking for the ID of the List so she knows which list we're deleting from πŸŽ€
  • item_count β€” Specifies the number of items to be deleted. This number must be nonnegative. lowkey important: nonnegative means zero or up, so don't you dare slide a negative number in there 😭
  • position β€” Specifies the position in the list of the first item to be deleted. A value of 1 indicates that the first deleted item is the first item in the list; a value of 2 indicates that it is the second item; and so on. so it's 1-indexed, not 0-indexed β€” the way that 1 is the first item and 2 is the second and it just keeps going like that πŸ’€

🧚 a lil note on List itself

For a complete definition of List and its associated resources, see XmList(3). if you want the full lore, that's where the lore lives πŸ“š



and that's the whole page, bestie!! 🌈 this one came from the library call source, version/date vibes of the XmListDeleteItemsPos(library call) era β€” so if you ever need to cite her, that's the energy. now go forth and delete items at positions, you absolute icon πŸ«ΆπŸ’–