1menu_requestname(3X)                                      menu_requestname(3X)
2
3
4

NAME

6       menu_request_by_name, menu_request_name - handle printable menu request
7       names
8

SYNOPSIS

10       #include <menu.h>
11
12       const char *menu_request_name(int request);
13       int menu_request_by_name(const char *name);
14

DESCRIPTION

16       The function menu_request_name returns the printable name of a menu re‐
17       quest code.
18       The  function menu_request_by_name searches in the name-table for a re‐
19       quest with the given name and  returns  its  request  code.   Otherwise
20       E_NO_MATCH is returned.
21

RETURN VALUE

23       menu_request_name  returns  NULL on error and sets errno to E_BAD_ARGU‐
24       MENT.
25       menu_request_by_name returns E_NO_MATCH on error.  It does not set  er‐
26       rno.
27

SEE ALSO

29       curses(3X), menu(3X).
30

NOTES

32       The  header  file  <menu.h>  automatically  includes  the  header  file
33       <curses.h>.
34

PORTABILITY

36       These routines are specific to ncurses.  They  were  not  supported  on
37       Version 7, BSD or System V implementations.  It is recommended that any
38       code depending on them be conditioned using NCURSES_VERSION.
39

AUTHORS

41       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
42       Raymond.
43
44
45
46                                                          menu_requestname(3X)
Impressum