'\"!  tbl | mmdoc
'\"macro stdmacro
.if n .pH g3x.menu_items @(#)menu_items	40.3 of 12/15/89
.\" Copyright 1989 AT&T
.\" ident	"@(#)svid_ti:ti_lib/menu_items	1.3"
.nr X
.if \nX=0 .ds x} menu_items 3X "" "\&"
.if \nX=1 .ds x} menu_items 3X ""
.if \nX=2 .ds x} menu_items 3X "" "\&"
.if \nX=3 .ds x} menu_items "" "" "\&"
.TH \*(x}
.SH NAME
\f4menu_items\f2: \f4 set_menu_items\f1, \f4menu_items\f1, \f4item_count\f1 \- connect and disconnect items to and from \f4menus\fP
.SH SYNOPSIS
.nf
.ft 4
#include <menu.h>
.sp
int set_menu_items(MENU *menu, ITEM **items);
.sp 0.5
ITEM **menu_items(MENU *menu);
.sp 0.5
int item_count(MENU *menu);
.ft 1
.fi
.SH DESCRIPTION
\f4set_menu_items\fP changes the item pointer array connected to
\f2menu\f1 to the item pointer array \f2items\f1.
.PP
\f4menu_items\fP returns a pointer to the item pointer array connected to
\f2menu\f1.
.PP
\f4item_count\fP returns the number of items in \f2menu\f1.
.SH RETURN VALUE
\f4menu_items\fP returns \f4NULL\fP on error.
.PP
\f4item_count\fP returns -1 on error.
.PP
\f4set_menu_items\fP returns one of the following:
.TS
lfCWw(1.25i)1 c1 l .
E_OK	\-	The routine returned successfully.
E_SYSTEM_ERROR	\-	System error.
E_BAD_ARGUMENT	\-	An incorrect argument was passed to the routine.
E_POSTED	\-	The menu is already posted.
E_CONNECTED	\-	T{
One or more items are already connected to another menu.
T}
.TE
.RE
.SH NOTES
.PP
The header file \f4<menu.h>\f1 automatically includes the header files
\f4<eti.h>\fP and \f4<curses.h>\fP.
.SH SEE ALSO
.na
\f4curses\fP(3X),
\f4menus\fP(3X).
.ad
