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

Function SfRealloc

mapshape.c:76–82  ·  view source on GitHub ↗

/ SfRealloc() */ / A realloc cover function that will access a NULL pointer as */ a valid input. */ /

Source from the content-addressed store, hash-verified

74/* a valid input. */
75/************************************************************************/
76static void * SfRealloc( void * pMem, int nNewSize )
77{
78 if( pMem == NULL )
79 return( (void *) malloc(nNewSize) );
80 else
81 return( (void *) realloc(pMem,nNewSize) );
82}
83
84/************************************************************************/
85/* writeHeader() */

Callers 4

msSHPWritePointFunction · 0.70
msSHPWriteShapeFunction · 0.70
msSHPReadAllocateBufferFunction · 0.70
msSHPReadShapeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected