X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fform_fieldtype.3x.html;h=b1e27a6d31a4401b52fdda4582acda441ae8da33;hp=fc220281c8da65be4eb30b770401881254198ce1;hb=6a530b46563470c2ca73579d1994a0c8e275dd98;hpb=a8987e73ec254703634802b4f7ee30d3a485524d diff --git a/doc/html/man/form_fieldtype.3x.html b/doc/html/man/form_fieldtype.3x.html index fc220281..b1e27a6d 100644 --- a/doc/html/man/form_fieldtype.3x.html +++ b/doc/html/man/form_fieldtype.3x.html @@ -1,8 +1,7 @@ - +
+ +- -form_fieldtype(3x) form_fieldtype(3x) +form_fieldtype(3x) form_fieldtype(3x)-
+NAME
form_fieldtype - define validation-field types-SYNOPSIS
+SYNOPSIS
#include <form.h> FIELDTYPE *new_fieldtype( bool (* const field_check)(FIELD *, const void *), @@ -72,7 +72,7 @@-DESCRIPTION
+DESCRIPTION
The function new_fieldtype creates a new field type usable for data validation. You supply it with field_check, a predicate to check the validity of an entered data string @@ -112,24 +112,31 @@ REQ_PREV_CHOICE assume that the possible values of a field form an ordered set, and provide the forms user with a way to move through the set. The set_fieldtype_choice func- - tion allows forms programmers to define successor and - predecessor functions for the field type. These functions + tion allows forms programmers to define successor and pre- + decessor functions for the field type. These functions take the field pointer and an argument-block structure as arguments.-RETURN VALUE
- The pointer-valued routines return NULL on error. +RETURN VALUE
+ The pointer-valued routines return NULL on error. They + set errno according to their success: + + E_OK The routine succeeded. + + E_BAD_ARGUMENT + Routine detected an incorrect or out-of-range argu- + ment. + + E_SYSTEM_ERROR + System error occurred, e.g., malloc failure. The integer-valued routines return one of the following codes on error: E_OK The routine succeeded. - E_SYSTEM_ERROR - System error occurred (see errno). - E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argu- ment. @@ -137,14 +144,20 @@ E_CONNECTED The field is already connected to a form. + E_CURRENT + The field is the current field. + + E_SYSTEM_ERROR + System error occurred (see errno). +-SEE ALSO
+SEE ALSO
curses(3x), form(3x).-NOTES
+NOTES
The header file <form.h> automatically includes the header file <curses.h>. @@ -154,24 +167,31 @@-PORTABILITY
+PORTABILITY
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.-AUTHORS
+AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. - form_fieldtype(3x) + form_fieldtype(3x)-
- -Man(1) output converted with -man2html - +