Function
GLibtry_malloc
since: 2.0
Declaration [src]
gpointer
g_try_malloc (
gsize n_bytes
)
Description [src]
Attempts to allocate n_bytes
, and returns NULL
on failure.
Contrast with g_malloc(), which aborts the program on failure.
Available since: 2.0