API Version: 2.0
Library Version: 2.76
Generated by gi-docgen 2023.2
since: 2.8
gpointer g_try_malloc0 ( gsize n_bytes )
Attempts to allocate n_bytes, initialized to 0’s, and returns NULL on failure. Contrast with g_malloc0(), which aborts the program on failure.
n_bytes
NULL
Available since: 2.8
Type: gsize
gsize
Number of bytes to allocate.
Type: gpointer
gpointer
The allocated memory, or NULL.