---
name: "SDL_OutOfMemory"
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_OutOfMemory"
---

# SDL\_OutOfMemory(3)

Set an error indicating that memory allocation failed.

## NAME

SDL\_OutOfMemory - Set an error indicating that memory allocation failed.

## HEADER FILE

Defined in SDL3/SDL\_error.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_OutOfMemory(void);**

## DESCRIPTION

This function does not do any memory allocation.

## RETURN VALUE

Returns false.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
