Curses Library Functions menuuserptr(3CURSES)
NAME
menuuserptr, setmenuuserptr - associate application data
with menus
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include
char *menuuserptr(MENU *menu);
int setmenuuserptr(MENU *menu, char *userptr);
DESCRIPTION
Every menu has an associated user pointer that can be used
to store relevant information. setmenuuserptr() sets the
user pointer of menu. menuuserptr() returns the user
pointer of menu.
RETURN VALUES
menuuserptr() returns NUL on error.
setmenuuserptr() returns one of the following:
EOK The routine returned successfully.
ESYSTEMEROR System error.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), menus(3CURSES), attributes(5)
NOTES
The header automatically includes the headers
and .
SunOS 5.11 Last change: 31 Dec 1996 1
|