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       int set_menu_userptr(MENU *menu, void *userptr);
12       void *menu_userptr(const MENU *menu);
13

DESCRIPTION

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

RETURN VALUE

20       menu_userptr returns a pointer (which may be NULL).  It  does  not  set
21       errno.
22
23       set_menu_userptr returns E_OK (success).
24

SEE ALSO

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

NOTES

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

PORTABILITY

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

AUTHORS

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