[Top] [Prev] [Next] [Bottom]

Fmkfldid (3FML)

Fmkfldid (3FML)

Name

Fmkfldid, Fmkfldid32-make a field identifier

#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(3)). 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(3), Fldtype(3)



[Top] [Prev] [Next] [Bottom]