requestname(3MENU)
β¨ requestname(3MENU) β¨
okay bestie, welcome to requestname(3MENU) β a lil library-calls page from the ncurses 6.6 squad, and it's all about handling printable menu request names. two lil functions, one big vibe. let's get into it π
πΈ NAME πΈ
menu_request_by_name, menu_request_name β handle printable menu request names
π SYNOPSIS π
#include <menu.h>
const char *menu_request_name(int request);
int menu_request_by_name(const char *name);
π DESCRIPTION π
so here's the tea, bestie. there's two functions and they're like two halves of one iconic friendship π«Ά
menu_request_name returns the printable name of a menu request code. that's it, that's the job. you hand it a request code, it hands you back a cute lil string name.
menu_request_by_name does the reverse glow-up β¨ it searches in the name-table for a request with the given name and returns its request code. and if it can't find your lil name anywhere? it gives you back E_NO_MATCH. no match, no notes π
π RETURN VALUE π
menu_request_namereturnsNULLon error, and it setserrnotoE_BAD_ARGUMENT. so if you get nothing back, check thaterrno, bestie πmenu_request_by_namereturnsE_NO_MATCHon error. and ngl, it does not seterrno. it's just like that π
π¦ PORTABILITY π¦
these routines are specific to ncurses. they were not supported on Version 7, BSD or System V implementations.
so fr fr, if you got code depending on them, it is recommended that you condition it using NCURSES_VERSION. don't get caught out here, periodt π
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
β SEE ALSO β
ncurses(3NCURSES)menu(3MENU)
and that's the whole page, bestie π this was ncurses 6.6, dated 2024-12-28 β now go forth and slay those menu request names, you absolute main character π§β¨
π¦ 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