4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>menu_items</B> - make and break connections between items and
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#include</B> <B><menu.h></B>
15 int set_menu_items(MENU *menu, ITEM **items);
16 ITEM **menu_items(const MENU *menu);
17 int item_count(const MENU *menu);
21 <H2>DESCRIPTION</H2><PRE>
22 The function <B>set_menu_items</B> changes the item pointer array
23 of the given <I>menu</I>. The array must be terminated by a
26 The function <B>menu_items</B> returns the item array of the
29 The function <B>item_count</B> returns the count of items in
34 <H2>RETURN VALUES</H2><PRE>
35 The function <B>menu_items</B> returns <B>NULL</B> on error.
37 The function <B>item_count</B> returns <B>ERR</B> (the general <B>curses</B>
38 error return value) on error.
40 The function <B>set_menu_items</B> returns one of the following
43 <B>E_OK</B> The routine succeeded.
46 System error occurred (see <B>errno</B>).
49 Routine detected an incorrect or out-of-range argu-
53 The menu is already posted.
55 <B>E_NOT_CONNECTED</B>
56 No items are connected to the menu.
60 <H2>SEE ALSO</H2><PRE>
61 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
66 The header file <B><menu.h></B> automatically includes the header
67 file <B><curses.h></B>.
71 <H2>PORTABILITY</H2><PRE>
72 These routines emulate the System V menu library. They
73 were not supported on Version 7 or BSD versions.
75 The SVr4 menu library documentation specifies the
76 <B>item_count</B> error value as -1 (which is the value of <B>ERR</B>).
81 Juergen Pfeifer. Manual pages and adaptation for new
82 curses by Eric S. Raymond.
132 Man(1) output converted with
133 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>