DOKK / manpages / debian 13 / libsdl3-doc / SDL_realloc_func.3type.en
SDL_realloc_func(3type) SDL3 DATATYPES SDL_realloc_func(3type)

SDL_realloc_func - A callback used to implement SDL_realloc ().

Defined in SDL3/SDL_stdinc.h

#include "SDL3/SDL.h"
typedef void *(SDLCALL *SDL_realloc_func)(void *mem, size_t size);

SDL will always ensure that the passed size is greater than 0.

a pointer to allocated memory to reallocate, or NULL.
the new size of the memory.

Returns a pointer to the newly allocated memory, or NULL if allocation failed.

It should be safe to call this callback from any thread.

This datatype is available since SDL 3.2.0.

(3), SDL_realloc(3), (3), SDL_GetOriginalMemoryFunctions(3), (3), SDL_GetMemoryFunctions(3), (3), SDL_SetMemoryFunctions(3)

SDL 3.2.10 Simple Directmedia Layer