tryMalloc0

fnvoid * tryMalloc0(size_t nBytes)

Attempts to allocate n_bytes, initialized to 0's, and returns null on failure. Contrast with [glib.global.malloc0], which aborts the program on failure.

Parameters

nBytesnumber of bytes to allocate

Returns

the allocated memory, or null