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

NAME

menu_userptr - associate application data with a menu item

CONTENTS

Synopsis
Description
Return Value
See Also
Notes
Portability
Authors

SYNOPSIS

#include <menu.h>
int set_menu_userptr(MENU *menu, void *userptr);
void *menu_userptr(const MENU *menu);

DESCRIPTION

Every menu and 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 the menu user pointer field.

RETURN VALUE

Except for menu_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