Query: menu_items
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MENU_ITEMS(3) BSD Library Functions Manual MENU_ITEMS(3)NAMEitem_count, menu_items, set_menu_items -- attach items to menus or check correspondencesLIBRARYCurses Menu Library (libmenu, -lmenu)SYNOPSIS#include <menu.h> int item_count(MENU *menu); ITEMS ** menu_items(MENU *menu); int set_menu_items(MENU *menu, ITEM **items);DESCRIPTIONThe item_count() menu function returns the number of items currently attached to the menu passed. The menu_items() function returns a pointer to an array of item pointers that represent the menu items currently attached to the given menu. Apart from using new_menu() (see menu_new(3)) menu items may be attached to a menu by calling set_menu_items() any items currently attached to the menu will be detached and the NULL terminated array of new items will be attached to the menu.RETURN VALUESAny function returning a string pointer will return NULL if an error occurs. Functions returning an integer will return one of the follow- ing: E_OK The function was successful. E_POSTED The menu is already posted. E_CONNECTED An item was already connected to a menu.SEE ALSOcurses(3), menus(3)NOTESThe header <menu.h> automatically includes both <curses.h> and <eti.h>.BSDSeptember 10, 1999 BSD
Related Man Pages |
---|
item_count(3curses) - opensolaris |
menu_items(3x) - mojave |
menu_items(3x) - redhat |
item_count(3x) - osx |
menu_items(3curses) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
modifieing the .fwmrc |
Dynamic select with multiple word menu items |
Interactive Array Menu |
Menu help with array selection |
[Bug?] Menu Item for subscribed threads is missing |