MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions               menuitemuserptr(3CURSES)



NAME
     menuitemuserptr, setitemuserptr, itemuserptr -  associ-
     ate application data with menus items

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

     int setitemuserptr(ITEM *item, char *userptr);


     char *itemuserptr(ITEM *item);


DESCRIPTION
     Every item has an associated user pointer that can  be  used
     to  store  relevant information. setitemuserptr() sets the
     user  pointer  of  item.  itemuserptr()  returns  the  user
     pointer of item.

RETURN VALUES
     itemuserptr() returns  NUL  on  error.  setitemuserptr()
     returns one of the following:

     EOK              The routine returned successfully.


     ESYSTEMEROR    System error.


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



     
           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                    1



OpenSolaris man pages main menu

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