SDL_calloc_func.3type - Man Page
A callback used to implement SDL_calloc ().
Header File
Defined in SDL3/SDL_stdinc.h
Synopsis
#include "SDL3/SDL.h" typedef void *(SDLCALL *SDL_calloc_func)(size_t nmemb, size_t size);
Description
SDL will always ensure that the passed nmemb and size are both greater than 0.
Function Parameters
- nmemb
the number of elements in the array.
- size
the size of each element of the array.
Return Value
Returns a pointer to the allocated array, or NULL if allocation failed.
Thread Safety
It should be safe to call this callback from any thread.
Availability
This datatype is available since SDL 3.2.0.
See Also
·(3), SDL_calloc(3), ·(3), SDL_GetOriginalMemoryFunctions(3), ·(3), SDL_GetMemoryFunctions(3), ·(3), SDL_SetMemoryFunctions(3)
Info
SDL 3.2.2 Simple Directmedia Layer SDL3 DATATYPES