1form_field_userptr(3CURSES)Curses Library Functionsform_field_userptr(3CURSES)
2
3
4
6 form_field_userptr, set_field_userptr, field_userptr - associate appli‐
7 cation data with forms
8
10 cc [ flag... ] file... -lform -lcurses [ library... ]
11 #include <form.h>
12
13 int set_field_userptr(FIELD *field, char *ptr);
14
15
16 char *field_userptr(FIELD *field);
17
18
20 Every field has an associated user pointer that can be used to store
21 pertinent data. set_field_userptr() sets the user pointer of field.
22 field_userptr() returns the user pointer of field.
23
25 field_userptr() returns NULL on error. set_field_userptr() returns one
26 of the following:
27
28 E_OK The function returned successfully.
29
30
31 E_SYSTEM_ERROR System error.
32
33
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
47 curses(3CURSES), forms(3CURSES), attributes(5)
48
50 The header <form.h> automatically includes the headers <eti.h> and
51 <curses.h>.
52
53
54
55SunOS 5.11 31 Dec 1996 form_field_userptr(3CURSES)