Curses Library Functions menuitems(3CURSES)
NAME
menuitems, setmenuitems, itemcount - connect and discon-
nect items to and from menus
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include
int setmenuitems(MENU *menu, ITEM **items);
ITEM **menuitems(MENU *menu);
int itemcount(MENU *menu);
DESCRIPTION
setmenuitems() changes the item pointer array connected to
menu to the item pointer array items.menuitems() returns a
pointer to the item pointer array connected to
menu.itemcount() returns the number of items in menu.
RETURN VALUES
menuitems() returns NUL on error.
itemcount() returns -1 on error.
setmenuitems() 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.
ECONECTED One or more items are already connected to
another menu.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions menuitems(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
|