*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> menu_items (3)              
Title
Content
Arch
Section
 

MENU_ITEMS(3)

Contents


NAME    [Toc]    [Back]

     item_count, menu_items, set_menu_items - attach items to menus or check
     correspondances

LIBRARY    [Toc]    [Back]

     Curses Menu Library (libmenu, -lmenu)

SYNOPSIS    [Toc]    [Back]

     #include <menu.h>

     int
     item_count(MENU *menu);

     ITEMS **
     menu_items(MENU *menu);

     int
     set_menu_items(MENU *menu, ITEM **items);

DESCRIPTION    [Toc]    [Back]

     The item_count() menu function returns the number of items currently
     attached to the menu passed.  The menu_items() function returns a pointer
     to an array of item pointers that represent the menu items currently
     attached to the given menu.  Apart from using new_menu() (see
     menu_new(3)) menu items may be attached to a menu by calling
     set_menu_items() any items currently attached to the menu will be
     detached and the NULL terminated array of new items will be attached to
     the menu.

RETURN VALUES    [Toc]    [Back]

     Any function returning a string pointer will return NULL if an error
     occurs.  Functions returning an integer will return one of the following:

     E_OK         The function was successful.
     E_POSTED     The menu is already posted.
     E_CONNECTED  An item was already connected to a menu.

SEE ALSO    [Toc]    [Back]

      
      
     curses(3), menus(3)

NOTES    [Toc]    [Back]

     The header <menu.h> automatically includes both <curses.h> and <eti.h>.

BSD                           September 10, 1999                           BSD
[ Back ]
 Similar pages
Name OS Title
item_count OpenBSD make and break connections between items and menus
set_menu_items OpenBSD make and break connections between items and menus
menu_items FreeBSD make and break connections between items and menus
menu_items OpenBSD make and break connections between items and menus
set_menu_items FreeBSD make and break connections between items and menus
item_count FreeBSD make and break connections between items and menus
XmListReplaceItemsPosUnselected IRIX A List function that replaces items in a list without selecting the replacement items
XmListReplaceItemsPosUnselected Tru64 A List function that replaces items in a list without selecting the replacement items
XmListReplaceItemsPosUnselected HP-UX A List function that replaces items in a list without selecting the replacement items
DEVICE_ATTACH FreeBSD attach a device
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service