Synopsis

(macro) int ddf_CheckFieldAttr(DDF_FLD *fld, long attr)

Purpose

Check if a field has an attribute.

Description

If the DDF field fld was specified with the attr attribute this function will return true, otherwise it will return false. The attr argument must be specified as one of the #defines generated by the DDF compiler for the attributes (the name of the attribute in uppercase) or a combination of them logically ORed together.

Input

fld

The field entry to check for having attr

attr

The attribute to check for

Return

True if the field has attr specified, false if not.