1menu_userptr(3CURSES) Curses Library Functions menu_userptr(3CURSES)
2
3
4
6 menu_userptr, set_menu_userptr - associate application data with menus
7
9 cc [ flag... ] file... -lmenu -lcurses [ library... ]
10 #include <menu.h>
11
12 char *menu_userptr(MENU *menu);
13
14
15 int set_menu_userptr(MENU *menu, char *userptr);
16
17
19 Every menu has an associated user pointer that can be used to store
20 relevant information. set_menu_userptr() sets the user pointer of menu.
21 menu_userptr() returns the user pointer of menu.
22
24 menu_userptr() returns NULL on error.
25
26
27 set_menu_userptr() returns one of the following:
28
29 E_OK The routine returned successfully.
30
31
32 E_SYSTEM_ERROR System error.
33
34
36 See attributes(5) for descriptions of the following attributes:
37
38
39
40
41 ┌─────────────────────────────┬─────────────────────────────┐
42 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
43 ├─────────────────────────────┼─────────────────────────────┤
44 │MT-Level │Unsafe │
45 └─────────────────────────────┴─────────────────────────────┘
46
48 curses(3CURSES), menus(3CURSES), attributes(5)
49
51 The header <menu.h> automatically includes the headers <eti.h> and
52 <curses.h>.
53
54
55
56SunOS 5.11 31 Dec 1996 menu_userptr(3CURSES)