X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fform_fieldtype.3x.html;h=21ca1ed249ca47333059f8bbf906293155cc3568;hb=1dd25cc0259e0683290fe889707b04979b5fda0a;hp=e6fc48268a8768d93761cb999e9f1e11eea9ebdc;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8;p=ncurses.git diff --git a/doc/html/man/form_fieldtype.3x.html b/doc/html/man/form_fieldtype.3x.html index e6fc4826..21ca1ed2 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 - define validation-field types --
+
#include <form.h> FIELDTYPE *new_fieldtype( bool (* const field_check)(FIELD *, const void *), @@ -71,8 +69,7 @@ FIELDTYPE *type2); --
+
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 +109,30 @@ 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. --
- The pointer-valued routines return NULL on error. +
+ 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 +140,18 @@ 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). + + +
curses(3x), form(3x). --
+
The header file <form.h> automatically includes the header file <curses.h>. @@ -153,14 +160,12 @@ for strict compatibility with System V. --
+
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. --
+
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. @@ -168,10 +173,17 @@ form_fieldtype(3x)-