ncursesw-morphos/Ada95/html/man/menu_requestname.3x.html

73 lines
1.6 KiB
HTML
Raw Normal View History

1997-05-15 12:00:00 +08:00
<HTML>
1999-10-24 12:32:42 +08:00
<BODY>
1997-05-15 12:00:00 +08:00
<PRE>
<STRONG>menu_requestname</STRONG> - handle printable menu request names
</PRE>
<H2>SYNOPSIS</H2><PRE>
1999-10-24 12:32:42 +08:00
<STRONG>#include</STRONG> <STRONG><menu.h></STRONG>
1997-05-15 12:00:00 +08:00
const char *menu_request_name(int request);
int menu_request_by_name(const char *name);
</PRE>
<H2>DESCRIPTION</H2><PRE>
The function <STRONG>menu_request_name</STRONG> returns the printable name
of a menu request code.
The function <STRONG>menu_request_by_name</STRONG> searches in the name-
table for a request with the given name and returns its
request code. Otherwise E_NO_MATCH is returned.
</PRE>
<H2>RETURN VALUE</H2><PRE>
<STRONG>menu_request_name</STRONG> returns <STRONG>NULL</STRONG> on error and sets errno to
<STRONG>E_BAD_ARGUMENT</STRONG>.
<STRONG>menu_request_by_name</STRONG> returns <STRONG>E_NO_MATCH</STRONG> on error.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="menu.3x.html">menu(3X)</A></STRONG>.
</PRE>
<H2>NOTES</H2><PRE>
1999-10-24 12:32:42 +08:00
The header file <STRONG><menu.h></STRONG> automatically includes the header
file <STRONG><curses.h></STRONG>.
1997-05-15 12:00:00 +08:00
</PRE>
<H2>PORTABILITY</H2><PRE>
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 con-
ditioned using NCURSES_VERSION.
</PRE>
<H2>AUTHORS</H2><PRE>
Juergen Pfeifer. Manual pages and adaptation for new
curses by Eric S. Raymond.
</PRE>
</BODY>
</HTML>