SDL_realloc_func3type
A callback used to implement sdl_realloc ().
Usage
#include "SDL3/SDL.h"
typedef void *(SDLCALL *SDL_realloc_func)(void *mem, size_t size);
Header file
Defined in SDL3/SDL_stdinc.h
Overview
SDL will always ensure that the passed size is greater than 0.
Function parameters
mem
|
a pointer to allocated memory to reallocate, or NULL. |
|---|---|
size
|
the new size of the memory. |
Return value
Returns a pointer to the newly allocated memory, or NULL if allocation failed.
Thread safety
It should be safe to call this callback from any thread.