tryMalloc0

fun tryMalloc0(nBytes: <Error class: unknown class>): <Error class: unknown class>?

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

Return

the allocated memory, or null

Since

2.8

Parameters

nBytes

number of bytes to allocate