288 if (psDBF->nCurrentRecord != iRecord)
295 nRecordOffset = psDBF->nRecordLength * (
SAOffset)iRecord + psDBF->nHeaderLength;
297 if (psDBF->sHooks.FSeek(psDBF->fp, nRecordOffset, SEEK_SET) != 0)
300 sprintf(szMessage,
"fseek(%ld) failed on DBF file.\n", (
long)nRecordOffset);
301 psDBF->sHooks.Error(szMessage);
305 if (psDBF->sHooks.FRead(psDBF->pszCurrentRecord, psDBF->nRecordLength, 1, psDBF->fp) != 1)
308 sprintf(szMessage,
"fread(%d) failed on DBF file.\n", psDBF->nRecordLength);
309 psDBF->sHooks.Error(szMessage);
313 psDBF->nCurrentRecord = iRecord;
if(!DBFLoadRecord(psDBF, hEntity)) return NULL
static int DBFFlushRecord(DBFHandle psDBF)