1menu_item_userptr(3CURSES) Curses Library Functions menu_item_userptr(3CURSES)
2
3
4

NAME

6       menu_item_userptr,  set_item_userptr, item_userptr - associate applica‐
7       tion data with menus items
8

SYNOPSIS

10       cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
11       #include <menu.h>
12
13       int set_item_userptr(ITEM *item, char *userptr);
14
15
16       char *item_userptr(ITEM *item);
17
18

DESCRIPTION

20       Every item has an associated user pointer that can  be  used  to  store
21       relevant information. set_item_userptr() sets the user pointer of item.
22       item_userptr() returns the user pointer of item.
23

RETURN VALUES

25       item_userptr() returns NULL on error. set_item_userptr() returns one of
26       the following:
27
28       E_OK              The routine returned successfully.
29
30
31       E_SYSTEM_ERROR    System error.
32
33

ATTRIBUTES

35       See attributes(5) for descriptions of the following attributes:
36
37
38
39
40       ┌─────────────────────────────┬─────────────────────────────┐
41       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │MT-Level                     │Unsafe                       │
44       └─────────────────────────────┴─────────────────────────────┘
45

SEE ALSO

47       curses(3CURSES), menus(3CURSES), attributes(5)
48

NOTES

50       The  header  <menu.h>  automatically  includes the headers  <eti.h> and
51       <curses.h>.
52
53
54
55SunOS 5.11                        31 Dec 1996       menu_item_userptr(3CURSES)
Impressum