2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>form_requestname</STRONG> - handle printable form request names
9 <STRONG>#include</STRONG> <STRONG><form.h></STRONG>
10 const char *form_request_name(int request);
11 int form_request_by_name(const char *name);
15 <H2>DESCRIPTION</H2><PRE>
16 The function <STRONG>form_request_name</STRONG> returns the printable name
17 of a form request code.
18 The function <STRONG>form_request_by_name</STRONG> searches in the name-
19 table for a request with the given name and returns its
20 request code. Otherwise E_NO_MATCH is returned.
24 <H2>RETURN VALUE</H2><PRE>
25 <STRONG>form_request_name</STRONG> returns <STRONG>NULL</STRONG> on error and sets errno to
26 <STRONG>E_BAD_ARGUMENT</STRONG>.
27 <STRONG>form_request_by_name</STRONG> returns <STRONG>E_NO_MATCH</STRONG> on error.
31 <H2>SEE ALSO</H2><PRE>
32 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3X)</A></STRONG>.
37 The header file <STRONG><form.h></STRONG> automatically includes the header
38 file <STRONG><curses.h></STRONG>.
42 <H2>PORTABILITY</H2><PRE>
43 These routines are specific to ncurses. They were not
44 supported on Version 7, BSD or System V implementations.
45 It is recommended that any code depending on them be con-
46 ditioned using NCURSES_VERSION.
51 Juergen Pfeifer. Manual pages and adaptation for new
52 curses by Eric S. Raymond.