1mitem_userptr(3X)                                            mitem_userptr(3X)
2
3
4

NAME

6       set_item_userptr, item_userptr - associate application data with a menu
7       item
8

SYNOPSIS

10       #include <menu.h>
11
12       int set_item_userptr(ITEM *item, void *userptr);
13       void *item_userptr(const ITEM *item);
14

DESCRIPTION

16       Every menu item has a field that can be used to  hold  application-spe‐
17       cific  data  (that  is,  the  menu-driver code leaves it alone).  These
18       functions get and set that field.
19

RETURN VALUE

21       The function item_userptr returns a pointer (possibly NULL).   It  does
22       not set errno.
23
24       The set_item_userptr always returns E_OK (success).
25

SEE ALSO

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

NOTES

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

PORTABILITY

34       These routines emulate the System V menu library.  They were  not  sup‐
35       ported on Version 7 or BSD versions.
36
37       The user pointer is a void pointer.  We chose not to leave it as a char
38       pointer for SVr4 compatibility.
39

AUTHORS

41       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
42       Raymond.
43
44
45
46                                                             mitem_userptr(3X)
Impressum