Seth Woolley's Man Viewer

set_menu_items(3x) - menu_items - make and break connections between items and menus - man 3x set_menu_items

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

menu_items(3X)                                                  menu_items(3X)



NAME
       menu_items - make and break connections between items and menus

SYNOPSIS
       #include <menu.h>
       int set_menu_items(MENU *menu(3x,n,n tk_menuSetFocus), ITEM **items);
       ITEM **menu_items(const MENU *menu(3x,n,n tk_menuSetFocus));
       int item_count(const MENU *menu(3x,n,n tk_menuSetFocus));

DESCRIPTION
       The function set_menu_items changes the item pointer array of the given
       menu(3x,n,n tk_menuSetFocus).  The array must be terminated by a NULL.

       The function menu_items returns the item array of the given menu.

       The function item_count returns the count of items in(1,8) menu(3x,n,n tk_menuSetFocus).

RETURN VALUES
       The function menu_items returns NULL on error.

       The function item_count returns ERR (the general  curses  error(8,n)  return
       value) on error.

       The  function  set_menu_items  returns  one  of  the following codes on
       error:

       E_OK The routine succeeded.

       E_SYSTEM_ERROR
            System error(8,n) occurred (see errno).

       E_BAD_ARGUMENT
            Routine detected an incorrect or out-of-range argument.

       E_POSTED
            The menu(3x,n,n tk_menuSetFocus) is already posted.

       E_NOT_CONNECTED
            No items are connected to the menu.

SEE ALSO
       curses(3X), menu(3x,n,n tk_menuSetFocus)(3X).

NOTES
       The  header  file(1,n)  <menu.h>  automatically  includes  the  header  file(1,n)
       <curses.h>.

PORTABILITY
       These  routines  emulate the System V menu(3x,n,n tk_menuSetFocus) library.  They were not sup-
       ported on Version 7 or BSD versions.

       The SVr4 menu(3x,n,n tk_menuSetFocus) library  documentation  specifies  the  item_count  error(8,n)
       value as -1 (which is the value of ERR).

AUTHORS
       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
       Raymond.



                                                                menu_items(3X)

References for this manual (incoming links)