1493{
1494 int i;
1495 unsigned char *pabyRec;
1496
1497
1498
1499
1500 if (hEntity < 0 || hEntity > psDBF->nRecords)
1502
1503 if (psDBF->bNoHeader)
1505
1506
1507
1508
1509 if (hEntity == psDBF->nRecords)
1510 {
1513
1514 psDBF->nRecords++;
1515 for (i = 0; i < psDBF->nRecordLength; i++)
1516 psDBF->pszCurrentRecord[i] = ' ';
1517
1518 psDBF->nCurrentRecord = hEntity;
1519 }
1520
1521
1522
1523
1524
1527
1528 pabyRec = (unsigned char *)psDBF->pszCurrentRecord;
1529
1530 memcpy(pabyRec, pRawTuple, psDBF->nRecordLength);
1531
1532 psDBF->bCurrentRecordModified =
TRUE;
1533 psDBF->bUpdated =
TRUE;
1534
1536}
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
static void DBFWriteHeader(DBFHandle psDBF)
static int DBFFlushRecord(DBFHandle psDBF)