malloc


Description:

public void* malloc (size_t n_bytes)

Allocates n_bytes bytes of memory.

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

the number of bytes to allocate

Returns:

a pointer to the allocated memory


Namespace: GLib
Package: glib-2.0