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