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

  man pages->FreeBSD man pages -> new_menu (3)              
Title
Content
Arch
Section
 

menu_new(3X)

Contents


NAME    [Toc]    [Back]

       menu_new - create and destroy menus

SYNOPSIS    [Toc]    [Back]

       #include <menu.h>
       MENU *new_menu(ITEM **items);
       int free_menu(MENU *menu);

DESCRIPTION    [Toc]    [Back]

       The  function new_menu creates a new menu connected to a specified item
       pointer array (which must be NULL-terminated).

       The function free_menu disconnects menu from its item array  and  frees
       the storage allocated for the menu.

RETURN VALUE    [Toc]    [Back]

       The function new_menu returns NULL on error.

       The function free_menu returns one of the following:

       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 has already been posted.

SEE ALSO    [Toc]    [Back]

      
      
       curses(3X), menu(3X).

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.

AUTHORS    [Toc]    [Back]

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



								  menu_new(3X)
[ Back ]
 Similar pages
Name OS Title
new_form OpenBSD create and destroy forms
free_form OpenBSD create and destroy forms
free_form FreeBSD create and destroy forms
new_form FreeBSD create and destroy forms
dmPMCreateManager IRIX create and destroy special
form_new OpenBSD create and destroy forms
form_new FreeBSD create and destroy forms
link_field FreeBSD create and destroy form fields
free_item FreeBSD create and destroy menu items
form_field_new FreeBSD create and destroy form fields
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service