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