---
name: "SDL_GetMemoryFunctions"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetMemoryFunctions"
---

# SDL\_GetMemoryFunctions(3)

Get the current set of SDL memory functions.

## NAME

SDL\_GetMemoryFunctions - Get the current set of SDL memory functions.

## HEADER FILE

Defined in SDL3/SDL\_stdinc.h

## SYNOPSIS

```
#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);**

## 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.

## SEE ALSO

**•**(3), [**SDL\_SetMemoryFunctions**(3)](/SDL_SetMemoryFunctions/3.md), **•**(3), [**SDL\_GetOriginalMemoryFunctions**(3)](/SDL_GetOriginalMemoryFunctions/3.md)
