menu\_requestname(3X) Library calls menu\_requestname(3X)

# [NAME](#NAME)

**menu\_request\_by\_name**, **menu\_request\_name** - handle printable menu request names

# [SYNOPSIS](#SYNOPSIS)

```
#include <menu.h>
```

```
const char *menu_request_name(int request);
int menu_request_by_name(const char *name);
```

# [DESCRIPTION](#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](#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**.

# [PORTABILITY](#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](#AUTHORS)

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

# [SEE ALSO](#SEE_ALSO)

[**curses**(3X)](/man/os/ncurses/curses.3X), [**menu**(3X)](/man/os/ncurses/menu.3X)

2024-12-28 ncurses 6.6

---

Document: menu_requestname(3x) from ncurses 6.6.20261010-r0 (Chainguard OS)
Source: https://github.com/ThomasDickey/ncurses-snapshots
