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