PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ SHPAllocBuffer()

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

Definition at line 1782 of file shpopen.c.

1783 {
1784  unsigned char* pRet;
1785 
1786  if( pBuffer == SHPLIB_NULLPTR )
1787  return calloc(1, nSize);
1788 
1789  pRet = *pBuffer;
1790  if( pRet == SHPLIB_NULLPTR )
1791  return SHPLIB_NULLPTR;
1792 
1793  (*pBuffer) += nSize;
1794  return pRet;
1795 }
#define SHPLIB_NULLPTR
Definition: shpopen.c:101

References SHPLIB_NULLPTR.

Referenced by if().

Here is the caller graph for this function: