---
name: "form_variables"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/form_variables"
---

# form\_variables(3)

form system global variables

## NAME

**TYPE\_ALNUM**, **TYPE\_ALPHA**, **TYPE\_ENUM**, **TYPE\_INTEGER**, **TYPE\_IPV4**, **TYPE\_NUMERIC**, **TYPE\_REGEXP** - form system global variables

## SYNOPSIS

```
#include <form.h>
```

**FIELDTYPE \* TYPE\_ALNUM;** **FIELDTYPE \* TYPE\_ALPHA;** **FIELDTYPE \* TYPE\_ENUM;** **FIELDTYPE \* TYPE\_INTEGER;** **FIELDTYPE \* TYPE\_IPV4;** **FIELDTYPE \* TYPE\_NUMERIC;** **FIELDTYPE \* TYPE\_REGEXP;**

## DESCRIPTION

**These are building blocks for the form library,** **defining fields that can be created using** **the form\_fieldtype(3X) functions.** **Each provides functions for field- and character-validation,** **according to the given datatype.**

### TYPE\_ALNUM

**This holds alphanumeric data.**

### TYPE\_ALPHA

**This holds alphabetic data.**

### TYPE\_ENUM

**This holds an enumerated type.**

### TYPE\_INTEGER

**This holds a decimal integer.**

### TYPE\_IPV4

**This holds an IPv4 internet address, e.g., "127.0.0.1".**

### TYPE\_NUMERIC

**This holds a decimal number, with optional sign and decimal point.**

### TYPE\_REGEXP

**This holds a regular expression.**

## PORTABILITY

**The TYPE\_IPV4 variable is an extension not provided by older** **implementations of the form library.**

## SEE ALSO

**form(3X)**
