png_create_info_struct

Name

png_create_info_struct -- allocate and initialize a png_info structure

Synopsis

#include <png.h>

png_infop png_create_info_struct(png_structp png_ptr);

Description

png_create_info_struct() shall allocate and initialize a png_info structure.

Return Value

Returns the pointer to png_info structure. Returns NULL if it fails to create the structure.

Errors

png_create_info_struct() shall return NULL if the allocation fails. The application should check for the return value.