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

# SDL\_AppQuit\_func(3type)

Function pointer typedef for SDL\_AppQuit .

## NAME

SDL\_AppQuit\_func - Function pointer typedef for  **SDL\_AppQuit** .

## HEADER FILE

Defined in SDL3/SDL\_init.h

## SYNOPSIS

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

**typedef void (SDLCALL \*SDL\_AppQuit\_func)(void \*appstate, SDL\_AppResult result);**

## DESCRIPTION

These are used by  **SDL\_EnterAppMainCallbacks** . This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement

**SDL\_AppEvent**\
  directly.

## FUNCTION PARAMETERS

- *appstate*

  an optional pointer, provided by the app in  **SDL\_AppInit** .

- *result*

  the result code that terminated the app (success or failure).

## AVAILABILITY

This datatype is available since SDL 3.2.0.
