mitem_name(3X)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

okay so bestie, this is mitem_name(3X) β€” yes, the Library calls page for getting a menu item’s name and description. it’s giving β€œtwo tiny getters, zero drama.” πŸ’…

πŸŽ€ NAME πŸŽ€

item_name, item_description β€” get menu item name and description fields

✨ SYNOPSIS ✨

#include <menu.h>

const char *item_name(const ITEM *item);
const char *item_description(const ITEM *item);

πŸ’– DESCRIPTION πŸ’–

okay so item_name does exactly what it says on the tin: it returns the name part of the given item. iconic. and item_description? yep, it returns the description part of the given item. two functions, two fields, no cap. πŸ¦‹

πŸ”₯ RETURN VALUE πŸ”₯

these routines hand you back a pointer (which may be NULL). they do not set errno. so like, do not goblin-mode assuming errno got updated, bestie. 😭

πŸ¦‹ PORTABILITY πŸ¦‹

these routines emulate the System V menu library. they were not supported on Version 7 or BSD versions. periodt. πŸ‘‘

πŸ‘‘ AUTHORS πŸ‘‘

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.

🌈 SEE ALSO 🌈

  • curses(3X)
  • menu(3X)

xoxo, this was ncurses 6.5, dated 2024-12-28 πŸ’–βœ¨

πŸ“¦ where this page comes from