1menu_requestname(3X) menu_requestname(3X)
2
3
4
6 menu_requestname - handle printable menu request names
7
9 #include <menu.h>
10 const char *menu_request_name(int request);
11 int menu_request_by_name(const char *name);
12
14 The function menu_request_name returns the printable name of a menu
15 request code.
16 The function menu_request_by_name searches in the name-table for a
17 request with the given name and returns its request code. Otherwise
18 E_NO_MATCH is returned.
19
21 menu_request_name returns NULL on error and sets errno to E_BAD_ARGU‐
22 MENT.
23 menu_request_by_name returns E_NO_MATCH on error. It does not set
24 errno.
25
27 curses(3X), menu(3X).
28
30 The header file <menu.h> automatically includes the header file
31 <curses.h>.
32
34 These routines are specific to ncurses. They were not supported on
35 Version 7, BSD or System V implementations. It is recommended that any
36 code depending on them be conditioned using NCURSES_VERSION.
37
39 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
40 Raymond.
41
42
43
44 menu_requestname(3X)