4 \fBmenu_new\fR - create and destroy menus
6 \fB#include <menu.h>\fR
8 MENU *new_menu(ITEM **items);
10 int free_menu(MENU *menu);
13 The function \fBnew_menu\fR creates a new menu connected to a specified item
14 pointer array (which must be \fBNULL\fR-terminated).
16 The function \fBfree_menu\fR disconnects \fImenu\fR from its item array
17 and frees the storage allocated for the menu.
19 The function \fBnew_menu\fR returns \fBNULL\fR on error.
21 The function \fBfree_menu\fR returns one of the following:
24 The routine succeeded.
27 System error occurred (see \fBerrno\fR).
30 Routine detected an incorrect or out-of-range argument.
33 The menu has already been posted.
35 \fBcurses\fR(3X), \fBmenu\fR(3X).
37 The header file \fB<menu.h>\fR automatically includes the header file
40 These routines emulate the System V menu library. They were not supported on
41 Version 7 or BSD versions.
43 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
46 .\"# The following sets edit modes for GNU EMACS