Makes a copy of the given array on newly allocated memory.
Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.
Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.
Makes a null-terminated copy of the given string on newly allocated memory. The null-terminator won't be part of the returned string slice. It will be at position n where n is the length of the input string.
Allocate memory using malloc or the GC depending on the configuration.