menu_new(3X) menu_new(3X)
NAME
menunew: newmenu, freemenu - create and destroy menus
SYNOPSIS
#include <menu.h>
MENU *newmenu(ITEM **items);
int freemenu(MENU *menu);
DESCRIPTION
newmenu creates a new menu connected to the item pointer array items
and returns a pointer to the new menu.
freemenu disconnects menu from its associated item pointer array and
frees the storage allocated for the menu.
RETURN VALUE
newmenu returns NULL on error.
freemenu returns one of the following:
EOK - The routine returned successfully.
ESYSTEMERROR - System error.
EBADARGUMENT - An incorrect argument was passed to the routine.
EPOSTED - The menu is already posted.
NOTES
The header file <menu.h> automatically includes the header files
<eti.h> and <curses.h>.
SEE ALSO
curses(3X), menus(3X).
7/91 Page 1