:man| Alphabetical   Categories   About us 
 
mitem_userptr (3X) | C library functions | Unix Manual Pages | :man

NAME

mitem_userptr - associate application data with a menu item

CONTENTS

Synopsis
Description
Return Value
See Also
Notes
Portability
Authors

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

Except for item_userptr (which returns NULL on error), each function returns one of the following: -->
E_OK The routine succeeded.
E_SYSTEM_ERROR
System error occurred (see errno).

SEE ALSO

curses(3), menu(3).

NOTES

PORTABILITY

AUTHORS

 
Created by Blin Media, 2008-2013