4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>form_userptr</B> - associate application data with a form item
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><form.h></B>
14 int set_form_userptr(FORM *form, void *userptr);
15 void* form_userptr(const FORM *form);
19 <H2>DESCRIPTION</H2><PRE>
20 Every form and every form item has a field that can be
21 used to hold application-specific data (that is, the form-
22 driver code leaves it alone). These functions get and set
23 the form user pointer field.
27 <H2>RETURN VALUE</H2><PRE>
28 The function <B>form_userptr</B> returns <B>NULL</B> on error. The
29 function <B>set_form_userptr</B> returns one of the following:
31 <B>E_OK</B> The routine succeeded.
34 System error occurred (see <B>errno</B>).
38 <H2>SEE ALSO</H2><PRE>
39 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="form.3x.html">form(3x)</A></B>.
44 The header file <B><form.h></B> automatically includes the header
45 file <B><curses.h></B>.
49 <H2>PORTABILITY</H2><PRE>
50 These routines emulate the System V forms library. They
51 were not supported on Version 7 or BSD versions.
53 The user pointer should be a void pointer. We leave it as
54 a char pointer for SVr4 compatibility.
59 Juergen Pfeifer. Manual pages and adaptation for new
60 curses by Eric S. Raymond.
78 Man(1) output converted with
79 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>