2 .TH form_field_userptr 3X ""
4 \fBform_field_userptr\fR - associate application data with a form field
6 \fB#include <form.h>\fR
8 int set_field_userptr(FIELD *field, void*userptr);
10 void *field_userptr(const FIELD *field);
13 Every form field has a field that can be used to hold application-specific data
14 (that is, the form-driver code leaves it alone). These functions get and set
17 The function \fBfield_userptr\fR returns \fBNULL\fR on error. The function
18 \fBset_field_userptr\fR returns one of the following:
21 The routine succeeded.
24 System error occurred (see \fBerrno\fR).
26 \fBcurses\fR(3X), \fBform\fR(3X).
28 The header file \fB<form.h>\fR automatically includes the header file
31 These routines emulate the System V forms library. They were not supported on
32 Version 7 or BSD versions.
34 The user pointer should be a void pointer. We leave it as a char pointer for
37 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
40 .\"# The following sets edit modes for GNU EMACS