PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ SHPAllocBuffer()

static void* SHPAllocBuffer ( unsigned char **  pBuffer,
int  nSize 
)
static

Definition at line 1793 of file shpopen.c.

1794 {
1795  unsigned char* pRet;
1796 
1797  if( pBuffer == SHPLIB_NULLPTR )
1798  return calloc(1, nSize);
1799 
1800  pRet = *pBuffer;
1801  if( pRet == SHPLIB_NULLPTR )
1802  return SHPLIB_NULLPTR;
1803 
1804  (*pBuffer) += nSize;
1805  return pRet;
1806 }
#define SHPLIB_NULLPTR
Definition: shpopen.c:101

References SHPLIB_NULLPTR.

Referenced by if().

Here is the caller graph for this function: