API Version: 2.0
Library Version: 2.83.0
Generated by gi-docgen 2024.1
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
Type: gsize
gsize
Number of bytes to allocate.
Type: gpointer
gpointer
The allocated memory, or NULL.