4 \fBmenu_items\fR - make and break connections between items and menus
6 \fB#include <menu.h>\fR
8 int set_menu_items(MENU *menu, ITEM **items);
10 ITEM **menu_items(const MENU *menu);
12 int item_count(const MENU *menu);
15 The function \fBset_menu_items\fR changes the item pointer array of the given
16 \fImenu\fR. The array must be terminated by a \fBNULL\fR.
18 The function \fBmenu_items\fR returns the item array of the given menu.
20 The function \fBitem_count\fR returns the count of items in \fImenu\fR.
22 The function \fBmenu_items\fR returns \fBNULL\fR on error.
24 The function \fBitem_count\fR returns \fBERR\fR (the general \fBcurses\fR error
25 return value) on error.
27 The function \fBset_menu_items\fR returns one of the following codes on error:
30 The routine succeeded.
33 System error occurred (see \fBerrno\fR).
36 Routine detected an incorrect or out-of-range argument.
39 The menu is already posted.
42 No items are connected to the menu.
44 \fBcurses\fR(3X), \fBmenu\fR(3X).
46 The header file \fB<menu.h>\fR automatically includes the header file
49 These routines emulate the System V menu library. They were not supported on
50 Version 7 or BSD versions.
52 The SVr4 menu library documentation specifies the \fBitem_count\fR error value
53 as -1 (which is the value of \fBERR\fR).
55 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
58 .\"# The following sets edit modes for GNU EMACS