Synopsis

int ddf_CheckFieldReftype(DDF_FLD *fld, DDF_TF tf)

Purpose

Checks for TF being a valid reftype.

Description

The list of reftypes for DDF_FLD fld is searched for tf and if found a value of 1 is returned. If tf is not found then 0 is returned. The field type of fld must be DDF_PTR otherwise the return value is undefined. fld must exist in the current DDF.

Input

fld

Field to check for tf being a valid reftype

tf

TF to be checked for in the reftype list for fld

Return

True if tf is in the reftype list for fld, false if not or if fld is not of type DDF_PTR.