Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ form_f_valid(3x) — NEWS-os 5.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

forms(3X)



form_field_validation(3X)
L
IBRARY FUNCTIONS
f
orm_field_validation(3X) NAME formfieldvalidation: setfieldtype, fieldtype, fieldarg - forms field data type validation SYNOPSIS #include <form.h> int setfieldtype(FIELD *field, FIELDTYPE *type, ...); FIELDTYPE *fieldtype(FIELD *field); char *fieldarg(FIELD *field); DESCRIPTION setfieldtype associates the specified field type with field. Certain field types take additional arguments. TYPEALNUM, for instance, requires one, the minimum width specification for the field. The other predefined field types are: TYPEALPHA, TYPEENUM, TYPEINTEGER, TYPENUMERIC, TYPEREGEXP. fieldtype returns a pointer to the field type of field. NULL is returned if no field type is assigned. fieldarg returns a pointer to the field arguments associ- ated with the field type of field. NULL is returned if no field type is assigned. RETURN VALUE fieldtype and fieldarg return NULL on error. setfieldtype returns one of the following: E_OK - The function returned successfully. E_SYSTEM_ERROR - System error. NOTES The header file <form.h> automatically includes the header files <eti.h> and <curses.h>. SEE ALSO curses(3X), forms(3X). 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026