carta
form_request_name(3)

form_request_name3

Handle printable form request names

Part of form_request_by_name(3).

Usage

const char *form_request_name(int request); int form_request_by_name(const char *name);

Overview

The function form_request_name returns the printable name of a form request code. The function form_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

form_request_name returns NULL on error and sets errno to E_BAD_ARGUMENT.

form_request_by_name returns E_NO_MATCH on error. It does not set errno.

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.

History

  • FreeBSD 16.0-CURRENT (2026-10-27) to FreeBSD 15.1-RELEASE: the text shown here
  • FreeBSD 15.0-RELEASE
  • FreeBSD 14.5-RELEASE
  • FreeBSD 14.4-RELEASE to FreeBSD 14.2-RELEASE
  • FreeBSD 14.1-RELEASE to FreeBSD 14.0-RELEASE
  • FreeBSD 13.5-RELEASE to FreeBSD 13.0-RELEASE
  • FreeBSD 12.4-RELEASE to FreeBSD 11.0-RELEASE
  • FreeBSD 10.4-RELEASE to FreeBSD 6.3-RELEASE
  • FreeBSD 6.2-RELEASE to FreeBSD 4.3-RELEASE

Authors

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

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's man source.