8ec1c7cd38e5441b96d58f7d71985cff00e3b1a2
[ncurses.git] / doc / html / man / form_variables.3x.html
1 <!-- 
2   ****************************************************************************
3   * Copyright (c) 2010,2013 Free Software Foundation, Inc.                   *
4   *                                                                          *
5   * Permission is hereby granted, free of charge, to any person obtaining a  *
6   * copy of this software and associated documentation files (the            *
7   * "Software"), to deal in the Software without restriction, including      *
8   * without limitation the rights to use, copy, modify, merge, publish,      *
9   * distribute, distribute with modifications, sublicense, and/or sell       *
10   * copies of the Software, and to permit persons to whom the Software is    *
11   * furnished to do so, subject to the following conditions:                 *
12   *                                                                          *
13   * The above copyright notice and this permission notice shall be included  *
14   * in all copies or substantial portions of the Software.                   *
15   *                                                                          *
16   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
17   * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
18   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
19   * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
20   * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
21   * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
22   * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
23   *                                                                          *
24   * Except as contained in this notice, the name(s) of the above copyright   *
25   * holders shall not be used in advertising or otherwise to promote the     *
26   * sale, use or other dealings in this Software without prior written       *
27   * authorization.                                                           *
28   ****************************************************************************
29   * @Id: form_variables.3x,v 1.4 2013/06/22 17:58:32 tom Exp @
30 -->
31 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
32 <HTML>
33 <HEAD>
34 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
35 <meta name="generator" content="Manpage converted by man2html - see http://invisible-island.net/scripts/readme.html#others_scripts">
36 <TITLE>form_variables 3x</TITLE>
37 <link rev=made href="mailto:bug-ncurses@gnu.org">
38 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
39 </HEAD>
40 <BODY>
41 <H1>form_variables 3x</H1>
42 <HR>
43 <PRE>
44 <STRONG><A HREF="form_variables.3x.html">form_variables(3x)</A></STRONG>                                   <STRONG><A HREF="form_variables.3x.html">form_variables(3x)</A></STRONG>
45
46
47
48
49 </PRE>
50 <H2><a name="h2-NAME">NAME</a></H2><PRE>
51        <STRONG>TYPE_ALNUM</STRONG>, <STRONG>TYPE_ALPHA</STRONG>, <STRONG>TYPE_ENUM</STRONG>, <STRONG>TYPE_INTEGER</STRONG>,
52        <STRONG>TYPE_IPV4</STRONG>, <STRONG>TYPE_NUMERIC</STRONG>, <STRONG>TYPE_REGEXP</STRONG> - form system global
53        variables
54
55
56 </PRE>
57 <H2><a name="h2-SYNOPSIS">SYNOPSIS</a></H2><PRE>
58        <STRONG>#include</STRONG> <STRONG>&lt;form.h&gt;</STRONG>
59
60        <STRONG>FIELDTYPE</STRONG> <STRONG>*</STRONG> <STRONG>TYPE_ALNUM;</STRONG>
61        <STRONG>FIELDTYPE</STRONG> <STRONG>*</STRONG> <STRONG>TYPE_ALPHA;</STRONG>
62        <STRONG>FIELDTYPE</STRONG> <STRONG>*</STRONG> <STRONG>TYPE_ENUM;</STRONG>
63        <STRONG>FIELDTYPE</STRONG> <STRONG>*</STRONG> <STRONG>TYPE_INTEGER;</STRONG>
64        <STRONG>FIELDTYPE</STRONG> <STRONG>*</STRONG> <STRONG>TYPE_IPV4;</STRONG>
65        <STRONG>FIELDTYPE</STRONG> <STRONG>*</STRONG> <STRONG>TYPE_NUMERIC;</STRONG>
66        <STRONG>FIELDTYPE</STRONG> <STRONG>*</STRONG> <STRONG>TYPE_REGEXP;</STRONG>
67
68
69 </PRE>
70 <H2><a name="h2-DESCRIPTION">DESCRIPTION</a></H2><PRE>
71        These  are  building blocks for the form library, defining
72        fields that can be created using <STRONG><A HREF="form_fieldtype.3x.html">form_fieldtype(3x)</A></STRONG>.   Each
73        provides  functions  for  field- and character-validation,
74        according to the given datatype.
75
76
77 </PRE>
78 <H3><a name="h3-TYPE_ALNUM">TYPE_ALNUM</a></H3><PRE>
79        This holds alphanumeric data.
80
81
82 </PRE>
83 <H3><a name="h3-TYPE_ALPHA">TYPE_ALPHA</a></H3><PRE>
84        This holds alphabetic data.
85
86
87 </PRE>
88 <H3><a name="h3-TYPE_ENUM">TYPE_ENUM</a></H3><PRE>
89        This holds an enumerated type.
90
91
92 </PRE>
93 <H3><a name="h3-TYPE_INTEGER">TYPE_INTEGER</a></H3><PRE>
94        This holds a decimal integer.
95
96
97 </PRE>
98 <H3><a name="h3-TYPE_IPV4">TYPE_IPV4</a></H3><PRE>
99        This holds an IPv4 internet address, e.g., "127.0.0.1".
100
101
102 </PRE>
103 <H3><a name="h3-TYPE_NUMERIC">TYPE_NUMERIC</a></H3><PRE>
104        This holds a decimal number, with optional sign and  deci-
105        mal point.
106
107
108 </PRE>
109 <H3><a name="h3-TYPE_REGEXP">TYPE_REGEXP</a></H3><PRE>
110        This holds a regular expression.
111
112
113 </PRE>
114 <H2><a name="h2-PORTABILITY">PORTABILITY</a></H2><PRE>
115        The  <STRONG>TYPE_IPV4</STRONG>  variable  is  an extension not provided by
116        older implementations of the form library.
117
118
119 </PRE>
120 <H2><a name="h2-SEE-ALSO">SEE ALSO</a></H2><PRE>
121        <STRONG><A HREF="form.3x.html">form(3x)</A></STRONG>.
122
123
124
125                                                      <STRONG><A HREF="form_variables.3x.html">form_variables(3x)</A></STRONG>
126 </PRE>
127 <div class="nav">
128 <ul>
129 <li><a href="#h2-NAME">NAME</a></li>
130 <li><a href="#h2-SYNOPSIS">SYNOPSIS</a></li>
131 <li><a href="#h2-DESCRIPTION">DESCRIPTION</a>
132 <ul>
133 <li><a href="#h3-TYPE_ALNUM">TYPE_ALNUM</a></li>
134 <li><a href="#h3-TYPE_ALPHA">TYPE_ALPHA</a></li>
135 <li><a href="#h3-TYPE_ENUM">TYPE_ENUM</a></li>
136 <li><a href="#h3-TYPE_INTEGER">TYPE_INTEGER</a></li>
137 <li><a href="#h3-TYPE_IPV4">TYPE_IPV4</a></li>
138 <li><a href="#h3-TYPE_NUMERIC">TYPE_NUMERIC</a></li>
139 <li><a href="#h3-TYPE_REGEXP">TYPE_REGEXP</a></li>
140 </ul>
141 </li>
142 <li><a href="#h2-PORTABILITY">PORTABILITY</a></li>
143 <li><a href="#h2-SEE-ALSO">SEE ALSO</a></li>
144 </ul>
145 </div>
146 </BODY>
147 </HTML>