337 unsigned char abyFileHeader[32];
339 if( psDBF->bNoHeader )
344 psDBF->sHooks.FSeek( psDBF->fp, 0, 0 );
345 psDBF->sHooks.FRead( abyFileHeader, 32, 1, psDBF->fp );
347 abyFileHeader[4] = (
unsigned char) (psDBF->nRecords % 256);
348 abyFileHeader[5] = (
unsigned char) ((psDBF->nRecords/256) % 256);
349 abyFileHeader[6] = (
unsigned char) ((psDBF->nRecords/(256*256)) % 256);
350 abyFileHeader[7] = (
unsigned char) ((psDBF->nRecords/(256*256*256)) % 256);
352 psDBF->sHooks.FSeek( psDBF->fp, 0, 0 );
353 psDBF->sHooks.FWrite( abyFileHeader, 32, 1, psDBF->fp );
355 psDBF->sHooks.FFlush( psDBF->fp );
static void DBFWriteHeader(DBFHandle psDBF)
static int DBFFlushRecord(DBFHandle psDBF)