Seth Woolley's Man Viewer

set_item_userptr(3x) - mitem_userptr - associate application data with a menu item - man 3x set_item_userptr

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

mitem_userptr(3X)                                            mitem_userptr(3X)



NAME
       mitem_userptr - associate application data with a menu(3x,n,n tk_menuSetFocus) item

SYNOPSIS
       #include <menu.h>
       int set_item_userptr(ITEM *item, void *userptr);
       void *item_userptr(const ITEM *item);

DESCRIPTION
       Every  menu(3x,n,n tk_menuSetFocus)  item has a field that can be used to hold application-spe-
       cific data (that is, the menu-driver  code  leaves  it  alone).   These
       functions get and set(7,n,1 builtins) that field.

RETURN VALUE
       Except  for  item_userptr  (which returns NULL on error(8,n)), each function
       returns one of the following:

       E_OK The routine succeeded.

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

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 user pointer should be a void pointer.   We  leave  it  as  a  char
       pointer for SVr4 compatibility.

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



                                                             mitem_userptr(3X)

References for this manual (incoming links)