1menu_items(3CURSES)        Curses Library Functions        menu_items(3CURSES)
2
3
4

NAME

6       menu_items,  set_menu_items,  item_count - connect and disconnect items
7       to and from menus
8

SYNOPSIS

10       cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
11       #include <menu.h>
12
13       int set_menu_items(MENU *menu, ITEM **items);
14
15
16       ITEM **menu_items(MENU *menu);
17
18
19       int item_count(MENU *menu);
20
21

DESCRIPTION

23       set_menu_items() changes the item pointer array connected  to  menu  to
24       the item pointer array items.menu_items() returns a pointer to the item
25       pointer array connected to  menu.item_count()  returns  the  number  of
26       items in menu.
27

RETURN VALUES

29       menu_items() returns NULL on error.
30
31
32       item_count() returns -1 on error.
33
34
35       set_menu_items() returns one of the following:
36
37       E_OK              The routine returned successfully.
38
39
40       E_SYSTEM_ERROR    System error.
41
42
43       E_BAD_ARGUMENT    An incorrect argument was passed to the routine.
44
45
46       E_POSTED          The menu is already posted.
47
48
49       E_CONNECTED       One  or  more  items are already connected to another
50                         menu.
51
52

ATTRIBUTES

54       See attributes(5) for descriptions of the following attributes:
55
56
57
58
59       ┌─────────────────────────────┬─────────────────────────────┐
60       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
61       ├─────────────────────────────┼─────────────────────────────┤
62       │MT-Level                     │Unsafe                       │
63       └─────────────────────────────┴─────────────────────────────┘
64

SEE ALSO

66       curses(3CURSES), menus(3CURSES), attributes(5)
67

NOTES

69       The header <menu.h> automatically includes  the  headers   <eti.h>  and
70       <curses.h>.
71
72
73
74SunOS 5.11                        31 Dec 1996              menu_items(3CURSES)
Impressum