Definition at line 291 of file dbfopen.c.
References DBFFlushRecord(), FALSE, SHPAPI_CALL, and TRUE.
Referenced by DBFIsRecordDeleted(), DBFMarkRecordDeleted(), DBFReadAttribute(), DBFWriteAttribute(), DBFWriteAttributeDirectly(), and DBFWriteTuple().
294 if( psDBF->nCurrentRecord != iRecord )
302 psDBF->nRecordLength * (
SAOffset) iRecord + psDBF->nHeaderLength;
304 if( psDBF->sHooks.FSeek( psDBF->fp, nRecordOffset, SEEK_SET ) != 0 )
307 sprintf( szMessage,
"fseek(%ld) failed on DBF file.\n",
308 (
long) nRecordOffset );
309 psDBF->sHooks.Error( szMessage );
313 if( psDBF->sHooks.FRead( psDBF->pszCurrentRecord,
314 psDBF->nRecordLength, 1, psDBF->fp ) != 1 )
317 sprintf( szMessage,
"fread(%d) failed on DBF file.\n",
318 psDBF->nRecordLength );
319 psDBF->sHooks.Error( szMessage );
323 psDBF->nCurrentRecord = iRecord;
static int DBFFlushRecord(DBFHandle psDBF)