|
MENU_ITEM_VALUE(3)
Contents
|
item_value, set_item_value - get or set value for an item
Curses Menu Library (libmenu, -lmenu)
#include <menu.h>
int
item_value(ITEM *item);
int
set_item_value(ITEM *item, int flag);
The item_value() function returns value of the item. If the item has
been selected then this value will be TRUE. The value can also be set by
calling set_item_value() to set the value to a defined state. Setting
the value to a value other than TRUE or FALSE will have undefined
results.
The functions return one of the following error values:
E_OK The function was successful.
E_NOT_CONNECTED The item is not connected to a menu.
E_REQUEST_DENIED The menu driver could not process the request.
curses(3), menus(3)
The header <menu.h> automatically includes both <curses.h> and <eti.h>.
BSD September 10, 1999 BSD
[ Back ] |