4 \fBmenu_userptr\fR - associate application data with a menu item
6 \fB#include <menu.h>\fR
8 int set_menu_userptr(MENU *menu, void *userptr);
10 void *menu_userptr(const MENU *menu);
13 Every menu and every menu item has a field that can be used to hold
14 application-specific data (that is, the menu-driver code leaves it alone).
15 These functions get and set the menu user pointer field.
17 Except for \fBmenu_userptr\fR (which returns \fBNULL\fR on error), each
18 function returns one of the following:
21 The routine succeeded.
24 System error occurred (see \fBerrno\fR).
26 \fBcurses\fR(3X), \fBmenu\fR(3X).
28 The header file \fB<menu.h>\fR automatically includes the header file
31 These routines emulate the System V menu library. They were not supported on
32 Version 7 or BSD versions.
34 The user pointer should be a void pointer. We leave it as a char pointer for
37 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
40 .\"# The following sets edit modes for GNU EMACS