A callback used to implement SDL_calloc().
Defined in <SDL3/SDL_stdinc.h>
typedef void *(SDLCALL *SDL_calloc_func)(size_t nmemb, size_t size);
nmemb | the number of elements in the array. |
size | the size of each element of the array. |
Returns a pointer to the allocated array, or NULL if allocation failed.
SDL will always ensure that the passed nmemb
and size
are both greater than 0.
It should be safe to call this callback from any thread.
This datatype is available since SDL 3.1.3.