4 \fBform_userptr\fR - associate application data with a form item
6 \fB#include <form.h>\fR
8 int set_form_userptr(FORM *form, void *userptr);
10 void* form_userptr(const FORM *form);
13 Every form and every form item has a field that can be used to hold
14 application-specific data (that is, the form-driver code leaves it alone).
15 These functions get and set the form user pointer field.
17 The function \fBform_userptr\fR returns \fBNULL\fR on error.
18 The function \fBset_form_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