MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPLPrintStringFill

Function CPLPrintStringFill

port/cpl_conv.cpp:1282–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280 */
1281
1282int CPLPrintStringFill(char *pszDest, const char *pszSrc, int nMaxLen)
1283{
1284 if (!pszDest)
1285 return 0;
1286
1287 if (!pszSrc)
1288 {
1289 memset(pszDest, ' ', nMaxLen);
1290 return nMaxLen;
1291 }
1292
1293 char *pszTemp = pszDest;
1294 while (nMaxLen && *pszSrc)
1295 {
1296 *pszTemp++ = *pszSrc++;
1297 nMaxLen--;
1298 }
1299
1300 if (nMaxLen)
1301 memset(pszTemp, ' ', nMaxLen);
1302
1303 return nMaxLen;
1304}
1305
1306/************************************************************************/
1307/* CPLPrintInt32() */

Callers 1

exportToPCIMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected