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

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

menu_items(3)

Contents


NAME    [Toc]    [Back]

       menu_items  - make and break connections between items and
       menus

SYNOPSIS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

       The function set_menu_items changes the item pointer array
       of  the  given  menu.   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
       menu.

RETURN VALUES    [Toc]    [Back]

       The function menu_items returns NULL on error.

       The function item_count returns ERR  (the  general  curses
       error 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    [Toc]    [Back]
            System error occurred (see errno).

       E_BAD_ARGUMENT    [Toc]    [Back]
            Routine detected an incorrect or  out-of-range  argument.


       E_POSTED    [Toc]    [Back]
            The menu is already posted.

       E_NOT_CONNECTED    [Toc]    [Back]
            No items are connected to the menu.

SEE ALSO    [Toc]    [Back]

      
      
       curses(3), menu(3).

NOTES    [Toc]    [Back]

       The header file <menu.h> automatically includes the header
       file <curses.h>.

PORTABILITY    [Toc]    [Back]

       These routines emulate the System V  menu  library.   They
       were not supported on Version 7 or BSD versions.

       The   SVr4   menu   library  documentation  specifies  the
       item_count error value as -1 (which is the value of  ERR).

AUTHORS    [Toc]    [Back]

       Juergen  Pfeifer.   Manual  pages  and  adaptation for new
       curses by Eric S. Raymond.
[ Back ]
 Similar pages
Name OS Title
form_field FreeBSD make and break connections between fields and forms
set_form_fields FreeBSD make and break connections between fields and forms
move_field OpenBSD make and break connections between fields and forms
move_field FreeBSD make and break connections between fields and forms
form_fields FreeBSD make and break connections between fields and forms
field_count OpenBSD make and break connections between fields and forms
field_count FreeBSD make and break connections between fields and forms
form_field OpenBSD make and break connections between fields and forms
set_form_fields OpenBSD make and break connections between fields and forms
form_fields OpenBSD make and break connections between fields and forms
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service