menu_items(3X) MISCELLANEOUS LIBRARY FUNCTIONS menu_items(3X)
NAME
menuitems: setmenuitems, menuitems, itemcount - con-
nect and disconnect items to and from menus
SYNOPSIS
#include <menu.h>
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 con-
nected to menu.
itemcount returns the number of items in menu.
RETURN VALUE
menuitems returns NULL on error.
itemcount returns -1 on error.
setmenuitems returns one of the following:
E_OK - The routine returned successfully.
E_SYSTEM_ERROR - System error.
E_BAD_ARGUMENT - An incorrect argument was passed to the routine.
E_POSTED - The menu is already posted.
E_CONNECTED - One or more items are already connected to
another menu.
NOTES
The header file <menu.h> automatically includes the header
files <eti.h> and <curses.h>.
SEE ALSO
curses(3X), menus(3X).
Last change: 1