1panel_userptr(3CURSES) Curses Library Functions panel_userptr(3CURSES)
2
3
4
6 panel_userptr, set_panel_userptr - associate application data with a
7 panels panel
8
10 cc [ flag ... ] file ... -lpanel -lcurses [ library .. ]
11 #include <panel.h>
12
13
14
15 int set_panel_userptr(PANEL *panel, char *ptr);
16
17
18 char * panel_userptr(PANEL *panel);
19
20
22 Each panel has a user pointer available for maintaining relevant infor‐
23 mation.
24
25
26 set_panel_userptr() sets the user pointer of panel to ptr.
27
28
29 panel_userptr() returns the user pointer of panel.
30
32 set_panel_userptr returns OK if successful, ERR otherwise.
33
34
35 panel_userptr returns NULL if there is no user pointer assigned to
36 panel.
37
39 See attributes(5) for descriptions of the following attributes:
40
41
42
43
44 ┌─────────────────────────────┬─────────────────────────────┐
45 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
46 ├─────────────────────────────┼─────────────────────────────┤
47 │MT-Level │Unsafe │
48 └─────────────────────────────┴─────────────────────────────┘
49
51 curses(3CURSES), panels(3CURSES), attributes(5)
52
54 The header <panel.h> automatically includes the header <curses.h>.
55
56
57
58SunOS 5.11 31 Dec 1996 panel_userptr(3CURSES)