1menu_userptr(3X)                                              menu_userptr(3X)
2
3
4

NAME

6       set_menu_userptr, menu_userptr - associate application data with a menu
7       item
8

SYNOPSIS

10       #include <menu.h>
11
12       int set_menu_userptr(MENU *menu, void *userptr);
13       void *menu_userptr(const MENU *menu);
14

DESCRIPTION

16       Every menu and every menu item has a field that can be used to hold ap‐
17       plication-specific  data  (that  is,  the  menu-driver  code  leaves it
18       alone).  These functions get and set the menu user pointer field.
19

RETURN VALUE

21       menu_userptr returns a pointer (which may be NULL).  It  does  not  set
22       errno.
23
24       set_menu_userptr 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                                                              menu_userptr(3X)
Impressum