API Version: 2.0
Library Version: 2.76
Generated by gi-docgen 2023.2
since: 2.10
gpointer g_slice_alloc ( gsize block_size )
Allocates a block of memory from the libc allocator.
The block address handed out can be expected to be aligned to at least 1 * sizeof (void*).
1 * sizeof (void*)
Since GLib 2.76 this always uses the system malloc() implementation internally.
malloc()
Available since: 2.10
block_size
Type: gsize
gsize
The number of bytes to allocate.
Type: gpointer
gpointer
A pointer to the allocated memory block, which will be NULL if and only if mem_size is 0
NULL
mem_size