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