Function

GLib-2.0GLibtry_malloc0Since 2.8

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

    Parameters

    • n_bytes: number

      number of bytes to allocate

    Returns any

    the allocated memory, or null

    2.8