---
name: "menu_requestname"
section: "3x"
platform: "macos"
package: "ncurses"
version: "79"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/menu_requestname/3x"
---

# menu\_requestname(3x)

handle printable menu request names

## NAME

**menu\_requestname** - 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

The function **menu\_request\_name** returns the printable name of a menu request code.\
 The function **menu\_request\_by\_name** searches in the name-table for a request with the given name and returns its request code. Otherwise E\_NO\_MATCH is returned.

## RETURN VALUE

**menu\_request\_name** returns **NULL** on error and sets errno to **E\_BAD\_ARGUMENT**.\
 **menu\_request\_by\_name** returns **E\_NO\_MATCH** on error. It does not set errno.

## SEE ALSO

**curses**(3X), **menu**(3X).

## NOTES

The header file **\<menu.h\>** automatically includes the header file **\<curses.h\>**.

## 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 NCURSES\_VERSION.

## AUTHORS

Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S. Raymond.
