1form_field_validation(3CURSECSu)rses Library Functiofnosrm_field_validation(3CURSES)
2
3
4

NAME

6       form_field_validation,  set_field_type,  field_type,  field_arg - forms
7       field data type validation
8

SYNOPSIS

10       cc [ flag... ] file... -lform  -lcurses  [ library... ]
11       #include <form.h>
12
13       int set_field_type(FIELD *field, FIELDTYPE *type...);
14
15
16       FIELDTYPE *field_type(FIELD *field);
17
18
19       char *field_arg(FIELD *field);
20
21

DESCRIPTION

23       set_field_type() associates the specified field type with  field.  Cer‐
24       tain  field  types take additional arguments. TYPE_ALNUM, for instance,
25       requires one, the minimum width specification for the field. The  other
26       predefined   field  types  are:  TYPE_ALPHA,  TYPE_ENUM,  TYPE_INTEGER,
27       TYPE_NUMERIC, and TYPE_REGEXP.
28
29
30       field_type() returns a pointer to the field  type  of  field.  NULL  is
31       returned if no field type is assigned.
32
33
34       field_arg()  returns  a  pointer to the field arguments associated with
35       the field type of field. NULL is returned if no field type is assigned.
36

RETURN VALUES

38       field_type() and field_arg() return NULL on error.
39
40
41       set_field_type() returns one of the following:
42
43       E_OK              The function returned successfully.
44
45
46       E_SYSTEM_ERROR    System error.
47
48

ATTRIBUTES

50       See attributes(5) for descriptions of the following attributes:
51
52
53
54
55       ┌─────────────────────────────┬─────────────────────────────┐
56       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │MT-Level                     │Unsafe                       │
59       └─────────────────────────────┴─────────────────────────────┘
60

SEE ALSO

62       curses(3CURSES), forms(3CURSES), attributes(5)
63

NOTES

65       The header <form.h> automatically includes  the  headers   <eti.h>  and
66       <curses.h>.
67
68
69
70SunOS 5.11                        31 Dec 1996   form_field_validation(3CURSES)
Impressum