png_malloc

Name

png_malloc -- allocate memory

Synopsis

#include <png.h>

png_voidp png_malloc(png_structp png_ptr, png_uint_32 size);

Description

png_malloc() shall return a pointer to allocated memory of the specified size.

Return Value

Pointer to the block of memory allocated.

Errors

Invokes error handling function if the system is out of memory and sets PNG_FLAG_MALLOC_NULL_MEM_OK in member flags of png_struct.