1415 unsigned char *pabyRec;
1420 if( hEntity < 0 || hEntity > psDBF->nRecords )
1423 if( psDBF->bNoHeader )
1429 if( hEntity == psDBF->nRecords )
1435 for( i = 0; i < psDBF->nRecordLength; i++ )
1436 psDBF->pszCurrentRecord[i] =
' ';
1438 psDBF->nCurrentRecord = hEntity;
1448 pabyRec = (
unsigned char *) psDBF->pszCurrentRecord;
1453 if( (
int)strlen((
char *) pValue) > psDBF->panFieldSize[iField] )
1454 j = psDBF->panFieldSize[iField];
1457 memset( pabyRec+psDBF->panFieldOffset[iField],
' ',
1458 psDBF->panFieldSize[iField] );
1459 j = strlen((
char *) pValue);
1462 strncpy((
char *) (pabyRec+psDBF->panFieldOffset[iField]),
1463 (
char *) pValue, j );
1465 psDBF->bCurrentRecordModified =
TRUE;
1466 psDBF->bUpdated =
TRUE;
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
static void DBFWriteHeader(DBFHandle psDBF)
static int DBFFlushRecord(DBFHandle psDBF)