char* fieldName(cdbfapiPlus* handle, int fieldno);

The function fieldName() returns a name of a field by index.
If the index is out of range then the function returns NULL.


{
    // your code
    for ( i=0; i < fieldCount(dbf); i++)
        printf( "%s\n", fieldName( dbf, i ) );
    // your code
}