]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/form_userptr.3x.html
ncurses 4.2
[ncurses.git] / Ada95 / html / form_userptr.3x.html
1 <HTML>
2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
3 <PRE>
4        <STRONG>form_userptr</STRONG> - associate application data with a form item
5
6
7 </PRE>
8 <H2>SYNOPSIS</H2><PRE>
9        <STRONG>#include</STRONG> <STRONG>&lt;form.h&gt;</STRONG>
10        int set_form_userptr(FORM *form, void *userptr);
11        void* form_userptr(const FORM *form);
12
13
14 </PRE>
15 <H2>DESCRIPTION</H2><PRE>
16        Every form and every form item has a  field  that  can  be
17        used to hold application-specific data (that is, the form-
18        driver code leaves it alone).  These functions get and set
19        the form user pointer field.
20
21
22 </PRE>
23 <H2>RETURN VALUE</H2><PRE>
24        The  function  <STRONG>form_userptr</STRONG>  returns  <STRONG>NULL</STRONG>  on error.  The
25        function <STRONG>set_form_userptr</STRONG> returns one of the following:
26
27        <STRONG>E_OK</STRONG> The routine succeeded.
28
29        <STRONG>E_SYSTEM_ERROR</STRONG>
30             System error occurred (see <STRONG>errno</STRONG>).
31
32
33 </PRE>
34 <H2>SEE ALSO</H2><PRE>
35        <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3X)</A></STRONG>.
36
37
38 </PRE>
39 <H2>NOTES</H2><PRE>
40        The header file <STRONG>&lt;form.h&gt;</STRONG> automatically includes the header
41        file <STRONG>&lt;curses.h&gt;</STRONG>.
42
43
44 </PRE>
45 <H2>PORTABILITY</H2><PRE>
46        These  routines  emulate the System V forms library.  They
47        were not supported on Version 7 or BSD versions.
48
49        The user pointer should be a void pointer.  We leave it as
50        a char pointer for SVr4 compatibility.
51
52
53 </PRE>
54 <H2>AUTHORS</H2><PRE>
55        Juergen  Pfeifer.   Manual  pages  and  adaptation for new
56        curses by Eric S. Raymond.
57
58
59
60
61
62
63
64
65
66
67
68
69
70 </PRE>
71 </BODY>
72 </HTML>