Function

GLib-2.0GLibtry_malloc

  • Attempts to allocate n_bytes, and returns null on failure. Contrast with g_malloc(), which aborts the program on failure.

    Parameters

    • n_bytes: number

      number of bytes to allocate.

    Returns any

    the allocated memory, or null.