1369 unsigned char *pabyRec;
1374 if (hEntity < 0 || hEntity > psDBF->nRecords)
1377 if (psDBF->bNoHeader)
1383 if (hEntity == psDBF->nRecords)
1389 for (i = 0; i < psDBF->nRecordLength; i++)
1390 psDBF->pszCurrentRecord[i] =
' ';
1392 psDBF->nCurrentRecord = hEntity;
1402 pabyRec = (
unsigned char *)psDBF->pszCurrentRecord;
1407 if ((
int)strlen((
char *)pValue) > psDBF->panFieldSize[iField])
1408 j = psDBF->panFieldSize[iField];
1411 memset(pabyRec + psDBF->panFieldOffset[iField],
' ', psDBF->panFieldSize[iField]);
1412 j = strlen((
char *)pValue);
1415 memcpy((
char *)(pabyRec + psDBF->panFieldOffset[iField]), (
char *)pValue, j);
1417 psDBF->bCurrentRecordModified =
TRUE;
1418 psDBF->bUpdated =
TRUE;
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
if(!DBFLoadRecord(psDBF, hEntity)) return NULL
static void DBFWriteHeader(DBFHandle psDBF)
static int DBFFlushRecord(DBFHandle psDBF)