Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

Check if field is fixed- or variable-length

Call ctdbIsVariableField() to check if a field is variable-length. ctdbIsVariableField() returns YES if the field is variable-length.

/* check if field 0 is variable length */

if (ctdbIsVariableField(hRecord, 0))

printf("Field 0 is variable length\n");

else

printf("Field 0 is fixed length\n");

TOCIndex