menu_name(3MENU)
π menu_name β the manual page, bestie edition π
okay so this is menu_name(3MENU), from the ncurses library calls era, and honestly? it's a lil baby page but it's iconic and we're gonna stan it properly.
β¨ NAME β¨
item_name, item_description β the girls that go get you the menu item's name and description fields πΈ
π¦ SYNOPSIS π¦
#include <menu.h>
const char *item_name(const ITEM *item);
const char *item_description(const ITEM *item);
like. two functions. that's the whole vibe. we love a minimal queen π
π DESCRIPTION π
so item_name hands you back the name part of the item you passed in. that's it. that's the job.
and item_description does the same lil trick but for the description part of the given item. π
they're literally just getters. no drama, no side quests, no chaos. just reading fields off an ITEM. periodt. β¨
π RETURN VALUE π
these routines return a pointer β and lowkey, that pointer may be NULL, so like, vibe check it before you go dereferencing bestie, fr fr. π
and the important bit: they do not set errno. nope. not touching it. not their business. π
π§ PORTABILITY π§
these routines emulate the System V menu library. that's the energy they're giving.
they were not supported on Version 7 or BSD versions β so if you're kicking it old-school BSD, sorry babe, no menu name for you π
π AUTHORS π
Juergen Pfeifer. π
Manual pages and adaptation for new curses by Eric S. Raymond.
(genuinely, thank you to both of them, absolute main character energy from the ncurses crew, no cap π«Ά)
β SEE ALSO β
ncurses(3NCURSES)menu(3MENU)
bestie reminder: this whole page is a two-function situation, so if you're expecting 40 options you came to the wrong party β but everything that was here is here, so we're good. π
πΈ that's the page! brought to you by ncurses 6.6, dated 2024-12-28, filed under menu_name(3MENU). mwah π slay, go read your menu items. β¨ππ¦
π¦ where this page comes from
- ubuntu resolute: ncurses-doc 6.6+20251231-1 Β· MIT/X11
- ubuntu stonking: ncurses-doc 6.6+20260608-2 Β· MIT/X11
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2010,2015 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms