examples/libxml.c
static void *myrealloc(void *ptr, size_t len, void *pw)
{
	/* In this implementation, we just call realloc.
	 * If we have more complex allocation requirements (e.g. multiple 
	 * allocation arenas, then we could use pw to point to the arena to use)
	 */
	UNUSED(pw);

	return realloc(ptr, len);
}
/**
 * Memory allocation callback.
 *
 * \param ptr  Pointer to block to reallocate, or NULL for a new allocation
 * \param len  Required length, in bytes. If zero, then free the block
 * \param pw   Pointer to our private data
 * \return Pointer to resized block
 */
Memory allocation callback.
\param ptr  Pointer to block to reallocate, or NULL for a new allocation
\param len  Required length, in bytes. If zero, then free the block
\param pw   Pointer to our private data
\return Pointer to resized block
Memory allocation callback . \ param ptr Pointer to block to reallocate or NULL for a new allocation \ param len Required length in bytes . If zero then free the block \ param pw Pointer to our private data \ return Pointer to resized block
static void *myrealloc(void *ptr, size_t len, void *pw)
{
	UNUSED(pw);
	return realloc(ptr, len);
}
static void * myrealloc ( void * ptr , size_t len , void * pw ) { UNUSED ( pw ) ; return realloc ( ptr , len ) ; }
Memory allocation callback.
Memory allocation callback .
/* In this implementation, we just call realloc.
	 * If we have more complex allocation requirements (e.g. multiple 
	 * allocation arenas, then we could use pw to point to the arena to use)
	 */