Memory.tryMalloc0

Attempts to allocate @n_bytes, initialized to 0's, and returns %NULL on failure. Contrast with g_malloc0(), which aborts the program on failure.

struct Memory
static
void*
tryMalloc0
(
size_t nBytes
)

Parameters

nBytes size_t

number of bytes to allocate

Return: the allocated memory, or %NULL

Meta