MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions                   menuitemnew(3CURSES)



NAME
     menuitemnew, newitem,  freeitem  -  create  and  destroy
     menus items

SYNOPSIS
     cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
     #include 

     ITEM *newitem(char *name, char *desc);


     int freeitem(ITEM *item);


DESCRIPTION
     newitem() creates a new item from name and description, and
     returns a pointer to the new item.


     freeitem() frees the storage allocated for  item.  Once  an
     item is freed, the user can no longer connect it to a menu.

RETURN VALUES
     newitem() returns NUL on error.


     freeitem() returns one of the following:

     EOK               The routine returned successfully.


     ESYSTEMEROR     System error.


     EBADARGUMENT     An incorrect argument was passed  to  the
                        routine.


     ECONECTED        One   or   more   items    are    already
                        connected to another menu.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:










SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions                   menuitemnew(3CURSES)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), menus(3CURSES), attributes(5)

NOTES
     The  header    automatically  includes  the  headers
      and .










































SunOS 5.11          Last change: 31 Dec 1996                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™