2 .TH mitem_userptr 3X ""
4 \fBmitem_userptr\fR - associate application data with a menu item
6 \fB#include <menu.h>\fR
8 int set_item_userptr(ITEM *item, const void *userptr);
10 const void *item_userptr(const ITEM *item);
13 Every menu item has a field that can be used to hold application-specific data
14 (that is, the menu-driver code leaves it alone). These functions get and set
17 Except for \fBitem_userptr\fR (which returns \fBNULL\fR on error), each function returns one of the following:
20 The routine succeeded.
23 System error occurred (see \fBerrno\fR).
25 \fBcurses\fR(3X), \fBmenu\fR(3X).
27 The header file \fB<menu.h>\fR automatically includes the header file
30 These routines emulate the System V menu library. They were not supported on
31 Version 7 or BSD versions.
33 The user pointer should be a void pointer. We leave it as a char pointer for
36 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
39 .\"# The following sets edit modes for GNU EMACS