G-Golf Glib Memory Allocation low level API.
Memory Allocation — general memory-handling
These functions provide support for allocating and freeing memory.
Please read the Memory Allocation section from the Glib reference manual for a complete description.
Returns a pointer to the allocated memory, or #f
.
Allocates n-bytes of memory. If n-bytes is 0
it
returns #f
. When using g-malloc0
, the allocated memory is
initialized to 0
.
Returns nothing.
Frees the memory pointed to by mem.
Returns a pointer to the allocated memory, or #f
.
Allocates n-bytes of memory and copies n-bytes into it from
mem. If mem is the %null-pointer
or n-bytes is
0
it returns #f
.