2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH MENU_ITEMS 3CURSES "Dec 31, 1996"
9 menu_items, set_menu_items, item_count \- connect and disconnect items to and
14 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lmenu\fR \fB -lcurses \fR [ \fIlibrary\fR... ]
17 \fBint\fR \fBset_menu_items\fR(\fBMENU *\fR\fImenu\fR, \fBITEM **\fR\fIitems\fR);
22 \fBITEM **\fR\fBmenu_items\fR(\fBMENU *\fR\fImenu\fR);
27 \fBint\fR \fBitem_count\fR(\fBMENU *\fR\fImenu\fR);
33 \fBset_menu_items()\fR changes the item pointer array connected to \fImenu\fR
34 to the item pointer array \fIitems\fR.\fBmenu_items()\fR returns a pointer to
35 the item pointer array connected to \fImenu\fR.\fBitem_count()\fR returns the
36 number of items in \fImenu\fR.
40 \fBmenu_items()\fR returns \fBNULL\fR on error.
43 \fBitem_count()\fR returns -1 on error.
46 \fBset_menu_items()\fR returns one of the following:
53 The routine returned successfully.
71 An incorrect argument was passed to the routine.
80 The menu is already posted.
89 One or more items are already connected to another menu.
95 See \fBattributes\fR(5) for descriptions of the following attributes:
103 ATTRIBUTE TYPE ATTRIBUTE VALUE
111 \fBcurses\fR(3CURSES), \fBmenus\fR(3CURSES), \fBattributes\fR(5)
115 The header \fB<menu.h>\fR automatically includes the headers \fB<eti.h>\fR and