1form_field_userptr(3X) form_field_userptr(3X)
2
3
4
6 set_field_userptr, field_userptr - associate application data with a
7 form field
8
10 #include <form.h>
11
12 int set_field_userptr(FIELD *field, void *userptr);
13 void *field_userptr(const FIELD *field);
14
16 Every form field has a field that can be used to hold application-spe‐
17 cific data (that is, the form-driver code leaves it alone). These
18 functions get and set that field.
19
21 The function field_userptr returns a pointer (which may be NULL). It
22 does not set errno.
23
24 The function set_field_userptr returns E_OK (success).
25
27 curses(3X), form(3X).
28
30 The header file <form.h> automatically includes the header file
31 <curses.h>.
32
34 These routines emulate the System V forms library. They were not sup‐
35 ported on Version 7 or BSD versions.
36
37 The user pointer is a void pointer. We chose not to leave it as a char
38 pointer for SVr4 compatibility.
39
41 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
42 Raymond.
43
44
45
46 form_field_userptr(3X)