Function

GLib-2.0GLibmalloc0

  • Allocates n_bytes bytes of memory, initialized to 0's. If n_bytes is 0 it returns null.

    If the allocation fails (because the system is out of memory), the program is terminated.

    Parameters

    • n_bytes: number

      the number of bytes to allocate

    Returns any

    a pointer to the allocated memory