---
name: "SDL_CloseStorage"
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_CloseStorage"
---

# SDL\_CloseStorage(3)

Closes and frees a storage container.

## NAME

SDL\_CloseStorage - Closes and frees a storage container.

## HEADER FILE

Defined in SDL3/SDL\_storage.h

## SYNOPSIS

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

**bool SDL\_CloseStorage(SDL\_Storage \*storage);**

## FUNCTION PARAMETERS

- *storage*

  a storage container to close.

## RETURN VALUE

Returns true if the container was freed with no errors, false otherwise; call  **SDL\_GetError** () for more information. Even if the function returns an error, the container data will be freed; the error is only for informational purposes.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_OpenFileStorage**(3)](/SDL_OpenFileStorage/3.md), **•**(3), [**SDL\_OpenStorage**(3)](/SDL_OpenStorage/3.md), **•**(3), [**SDL\_OpenTitleStorage**(3)](/SDL_OpenTitleStorage/3.md), **•**(3), [**SDL\_OpenUserStorage**(3)](/SDL_OpenUserStorage/3.md)
