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       const char *menu_request_name(int request);
12       int menu_request_by_name(const char *name);
13

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

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

NOTES

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

PORTABILITY

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

AUTHORS

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