Curses Library Functions menunew(3CURSES)
NAME
menunew, newmenu, freemenu - create and destroy menus
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include
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 VALUES
newmenu() returns NUL on error.
freemenu() returns one of the following:
EOK The routine returned successfully.
ESYSTEMEROR System error.
EBADARGUMENT An incorrect argument was passed to the
routine.
EPOSTED The menu is already posted.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions menunew(3CURSES)
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), menus(3CURSES), attributes(5)
NOTES
The header automatically includes the headers
and .
SunOS 5.11 Last change: 31 Dec 1996 2
|