---
name: "SDL_Quit"
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_Quit"
---

# SDL\_Quit(3)

Clean up all initialized subsystems.

## NAME

SDL\_Quit - Clean up all initialized subsystems.

## HEADER FILE

Defined in SDL3/SDL\_init.h

## SYNOPSIS

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

**void SDL\_Quit(void);**

## DESCRIPTION

You should call this function even if you have already shutdown each initialized subsystem with  **SDL\_QuitSubSystem** (). It is safe to call this function even in the case of errors in initialization.

You can use this function with atexit() to ensure that it is run when your application is shutdown, but it is not wise to do this from a library or other dynamically loaded code.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_Init**(3)](/SDL_Init/3.md), **•**(3), [**SDL\_QuitSubSystem**(3)](/SDL_QuitSubSystem/3.md)
