MCPcopy Index your code
hub / github.com/MapServer/MapServer / flushRecord

Function flushRecord

mapxbase.c:123–138  ·  view source on GitHub ↗

/ flushRecord() */ / Write out the current record if there is one. */ /

Source from the content-addressed store, hash-verified

121/* Write out the current record if there is one. */
122/************************************************************************/
123static void flushRecord( DBFHandle psDBF )
124
125{
126 unsigned int nRecordOffset;
127
128 if( psDBF->bCurrentRecordModified && psDBF->nCurrentRecord > -1 )
129 {
130 psDBF->bCurrentRecordModified = MS_FALSE;
131
132 nRecordOffset = psDBF->nRecordLength * psDBF->nCurrentRecord
133 + psDBF->nHeaderLength;
134
135 safe_fseek( psDBF->fp, nRecordOffset, 0 );
136 fwrite( psDBF->pszCurrentRecord, psDBF->nRecordLength, 1, psDBF->fp );
137 }
138}
139
140/************************************************************************/
141/* msDBFOpen() */

Callers 3

msDBFCloseFunction · 0.85
msDBFReadAttributeFunction · 0.85
msDBFWriteAttributeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected