4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>menu_new</B> - create and destroy menus
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><menu.h></B>
14 MENU *new_menu(ITEM **items);
15 int free_menu(MENU *menu);
19 <H2>DESCRIPTION</H2><PRE>
20 The function <B>new_menu</B> creates a new menu connected to a
21 specified item pointer array (which must be <B>NULL</B>-termi-
24 The function <B>free_menu</B> disconnects <I>menu</I> from its item
25 array and frees the storage allocated for the menu.
29 <H2>RETURN VALUE</H2><PRE>
30 The function <B>new_menu</B> returns <B>NULL</B> on error.
32 The function <B>free_menu</B> returns one of the following:
34 <B>E_OK</B> The routine succeeded.
37 System error occurred (see <B>errno</B>).
40 Routine detected an incorrect or out-of-range argu-
44 The menu has already been posted.
48 <H2>SEE ALSO</H2><PRE>
49 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
54 The header file <B><menu.h></B> automatically includes the header
55 file <B><curses.h></B>.
59 <H2>PORTABILITY</H2><PRE>
60 These routines emulate the System V menu library. They
61 were not supported on Version 7 or BSD versions.
66 Juergen Pfeifer. Manual pages and adaptation for new
67 curses by Eric S. Raymond.
78 Man(1) output converted with
79 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>