Definition at line 1325 of file dbfopen.c.
1328{
1329 int i, j, nRetResult =
TRUE;
1330 unsigned char *pabyRec;
1332
1333
1334
1335
1336 if( hEntity < 0 || hEntity > psDBF->
nRecords )
1338
1341
1342
1343
1344
1346 {
1349
1353
1355 }
1356
1357
1358
1359
1360
1363
1365
1368
1369
1370
1371
1372
1373
1375 {
1380 }
1381
1382
1383
1384
1386 {
1387 case 'D':
1388 case 'N':
1389 case 'F':
1390 {
1392
1393 if(
STATIC_CAST(
int,
sizeof(szSField))-2 < nWidth )
1394 nWidth = sizeof(szSField)-2;
1395
1396 snprintf( szFormat, sizeof(szFormat), "%%%d.%df",
1399 szSField[sizeof(szSField)-1] = '\0';
1401 {
1404 }
1406 szSField, strlen(szSField) );
1407 break;
1408 }
1409
1410 case 'L':
1414 break;
1415
1416 default:
1418 {
1421 }
1422 else
1423 {
1427 }
1428
1431 break;
1432 }
1433
1434 return( nRetResult );
1435}
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().