PURPOSE

Fmkfldid, Fmkfldid32 - make a field identifier

SYNOPSIS


#include <stdio.h>
#include "fml.h"
FLDID
Fmkfldid(int type, FLDID num)
#include "fml.h"
FLDID32
Fmkfldid32(int type, FLDID32 num)

DESCRIPTION

Fmkfldid(\|) allows the creation of a valid field identifier from a valid type (as defined in fml.h) and a field number. This is useful for writing an application generator that chooses field numbers sequentially, or for recreating a field identifier.

type is a valid type (an integer; see Fldtype(3fml)). num is a field number (it should be an unused field number, to avoid confusion with existing fields)

Fmkfldid32 is used with 32-bit FML.

RETURN VALUES

This function returns BADFLDID on error and sets Ferror to indicate the error condition.

ERRORS

Under the following conditions, Fmkfldid() fails and sets Ferror to:

[FBADFLD]
"unknown field number or type" A field number is specified which is not valid.
[FTYPERR]
"invalid field type" A field type is specified which is not valid (as defined in fml.h).

SEE ALSO

Fintro(3fml), Fldtype(3fml)