menurequestname(3X) menurequestname(3X)
NAME
menurequestname - handle printable menu request names
SYNOPSIS
##include <>
const char *menurequestname(int request);
int menurequestbyname(const char *name);
DESCRIPTION
The function menurequestname returns the printable name of a menu
request code.
The function menurequestbyname searches in the name-table for a
request with the given name and returns its request code. Otherwise
ENOMATCH is returned.
RETURN VALUE
menurequestname returns NUL on error and sets errno to EBADARGU-
MENT.
menurequestbyname returns ENOMATCH on error.
SEE ALSO
curses(3X), menu(3X).
NOTES
The header file <> automatically includes the header file
<>.
PORTABILITY
These routines are specific to ncurses. They were not supported on
Version 7, BSD or System V implementations. It is recommended that any
code depending on them be conditioned using NCURSESVERSION.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
Raymond.
menurequestname(3X)
|