Definition at line 1316 of file dbfopen.c.
1319{
1320 int i, j, nRetResult =
TRUE;
1321 unsigned char *pabyRec;
1323
1324
1325
1326
1327 if( hEntity < 0 || hEntity > psDBF->
nRecords )
1329
1332
1333
1334
1335
1337 {
1340
1344
1346 }
1347
1348
1349
1350
1351
1354
1356
1359
1360
1361
1362
1363
1364
1366 {
1371 }
1372
1373
1374
1375
1377 {
1378 case 'D':
1379 case 'N':
1380 case 'F':
1381 {
1383
1384 if(
STATIC_CAST(
int,
sizeof(szSField))-2 < nWidth )
1385 nWidth = sizeof(szSField)-2;
1386
1387 snprintf( szFormat, sizeof(szFormat), "%%%d.%df",
1390 szSField[sizeof(szSField)-1] = '\0';
1392 {
1395 }
1397 szSField, strlen(szSField) );
1398 break;
1399 }
1400
1401 case 'L':
1405 break;
1406
1407 default:
1409 {
1412 }
1413 else
1414 {
1418 }
1419
1422 break;
1423 }
1424
1425 return( nRetResult );
1426}
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
#define STATIC_CAST(type, x)
#define REINTERPRET_CAST(type, x)
static void DBFWriteHeader(DBFHandle psDBF)
static char DBFGetNullCharacter(char chType)
static int DBFFlushRecord(DBFHandle psDBF)
#define XBASE_FLD_MAX_WIDTH
int bCurrentRecordModified
References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, DBFInfo::bUpdated, CPLsnprintf, DBFFlushRecord(), DBFGetNullCharacter(), DBFLoadRecord(), DBFWriteHeader(), FALSE, DBFInfo::nCurrentRecord, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, REINTERPRET_CAST, SHPLIB_NULLPTR, STATIC_CAST, TRUE, and XBASE_FLD_MAX_WIDTH.
Referenced by DBFWriteDoubleAttribute(), DBFWriteIntegerAttribute(), DBFWriteLogicalAttribute(), DBFWriteNULLAttribute(), and DBFWriteStringAttribute().