table of contents
other versions
- wheezy 5.9-10
- jessie 5.9+20140913-1
- testing 6.0+20161126-1
- unstable 6.0+20161126-1
- experimental 6.0+20170408-1
items(3MENU) | items(3MENU) |
NAME¶
menu_items - make and break connections between items and menusSYNOPSIS¶
#include <menu.h>DESCRIPTION¶
The function set_menu_items changes the item pointer array of the given menu. The array must be terminated by a NULL. The function menu_items returns the item array of the given menu. The function item_count returns the count of items in menu.RETURN VALUES¶
The function menu_items returns a pointer (which may be NULL). It does not set errno. The function item_count returns ERR (the general curses error return value) if its menu parameter is NULL. The function set_menu_items returns one of the following codes on error:- E_OK
- The routine succeeded.
- E_BAD_ARGUMENT
- Routine detected an incorrect or out-of-range argument.
- E_NOT_CONNECTED
- No items are connected to the menu.
- E_POSTED
- The menu is already posted.
- E_SYSTEM_ERROR
- System error occurred (see errno).