1form_userptr(3X) form_userptr(3X)
2
3
4
6 set_form_userptr, form_userptr - associate application data with a form
7 item
8
10 #include <form.h>
11 int set_form_userptr(FORM *form, void *userptr);
12 void* form_userptr(const FORM *form);
13
15 Every form and every form item has a field that can be used to hold
16 application-specific data (that is, the form-driver code leaves it
17 alone). These functions get and set the form user pointer field.
18
20 The function form_userptr returns a pointer (which may be NULL). It
21 does not set errno.
22
23 The function set_form_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_userptr(3X)