326 unsigned char abyFileHeader[32];
328 if (psDBF->bNoHeader)
333 psDBF->sHooks.FSeek(psDBF->fp, 0, 0);
334 psDBF->sHooks.FRead(abyFileHeader, 32, 1, psDBF->fp);
336 abyFileHeader[4] = (
unsigned char)(psDBF->nRecords % 256);
337 abyFileHeader[5] = (
unsigned char)((psDBF->nRecords / 256) % 256);
338 abyFileHeader[6] = (
unsigned char)((psDBF->nRecords / (256 * 256)) % 256);
339 abyFileHeader[7] = (
unsigned char)((psDBF->nRecords / (256 * 256 * 256)) % 256);
341 psDBF->sHooks.FSeek(psDBF->fp, 0, 0);
342 psDBF->sHooks.FWrite(abyFileHeader, 32, 1, psDBF->fp);
344 psDBF->sHooks.FFlush(psDBF->fp);
static void DBFWriteHeader(DBFHandle psDBF)
static int DBFFlushRecord(DBFHandle psDBF)