alloc0


Description:

public void* alloc0 (size_t block_size)

Allocates a block of memory via alloc and initializes the returned memory to 0.

Note that the underlying slice allocation mechanism can be changed with the `G_SLICE=always-malloc` environment variable.

Parameters:

block_size

the number of bytes to allocate

Returns:

a pointer to the allocated block


Namespace: GLib.Slice
Package: glib-2.0