SDL_GetMemoryFunctions(3)

SDL_GetMemoryFunctions3

Get the current set of sdl memory functions.

Usage

#include "SDL3/SDL.h"

void SDL_GetMemoryFunctions(SDL_malloc_func *malloc_func, SDL_calloc_func *calloc_func, SDL_realloc_func *realloc_func, SDL_free_func *free_func);

Header file

Defined in SDL3/SDL_stdinc.h

Function parameters

malloc_func

filled with malloc function.

calloc_func

filled with calloc function.

realloc_func

filled with realloc function.

free_func

filled with free function.

Thread safety

This does not hold a lock, so do not call this in the unlikely event of a background thread calling SDL_SetMemoryFunctions

simultaneously.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.