Function

Gegltry_malloc

Declaration [src]

gpointer
gegl_try_malloc (
  gsize n_bytes
)

Description [src]

Allocates n_bytes of memory. If allocation fails, or if n_bytes is 0, returns NULL.

Returns a pointer to the allocated memory, or NULL.

This function is not directly available to language bindings

Parameters

n_bytes gsize
 

The number of bytes to allocte.

Return value

Returns: gpointer
  No description available.
 The data is owned by the called function.
 The return value can be NULL.