menu_item_value(3) - NetBSD Manual Pages

Command: Section: Arch: Collection:  
MENU_ITEM_VALUE(3)        NetBSD Programmer's Manual        MENU_ITEM_VALUE(3)


NAME
item_value, set_item_value - get or set value for an item
LIBRARY
Curses Menu Library (libmenu, -lmenu)
SYNOPSIS
#include <menu.h> int item_value(ITEM *item); int set_item_value(ITEM *item, int flag);
DESCRIPTION
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 re- sults.
RETURN VALUES
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.
SEE ALSO
curses(3), menus(3)
NOTES
The header <menu.h> automatically includes both <curses.h> and <eti.h>. NetBSD 1.6.2 September 10, 1999 1
Powered by man-cgi (2024-03-20). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.