1SDL_Quit(3)                    SDL API Reference                   SDL_Quit(3)
2
3
4

NAME

6       SDL_Quit - Shut down SDL
7

SYNOPSIS

9       #include "SDL.h"
10
11       void SDL_Quit(void);
12

DESCRIPTION

14       SDL_Quit  shuts  down  all SDL subsystems and frees the resources allo‐
15       cated to them. This should always be called before you  exit.  For  the
16       sake of simplicity you can set SDL_Quit as your atexit call, like:
17
18       SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
19       atexit(SDL_Quit);
20       .
21       .
22
23              Note:
24
25              While  using  atexit  maybe  be  fine  for  small programs, more
26              advanced users should shut down SDL in their own  cleanup  code.
27              Plus,  using  atexit in a library is a sure way to crash dynami‐
28              cally loaded code
29

SEE ALSO

31       SDL_QuitSubsystem, SDL_Init
32
33
34
35SDL                         Tue 11 Sep 2001, 23:00                 SDL_Quit(3)
Impressum