API Version: 2.0
Library Version: 2.72
gpointer g_try_malloc ( gsize n_bytes )
Attempts to allocate n_bytes, and returns NULL on failure. Contrast with g_malloc(), which aborts the program on failure.
n_bytes
NULL
gsize
Number of bytes to allocate.
gpointer
The allocated memory, or NULL.