Penguin
Annotated edit history of SDL_Quit(3) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 SDL_Quit
2 !!!SDL_Quit
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 SEE ALSO
7 ----
8 !!NAME
9
10
11 SDL_Quit- Shut down SDL
12 !!SYNOPSIS
13
14
15 __#include __
16
17
18 __void SDL_Quit__(__void__);
19 !!DESCRIPTION
20
21
22 __SDL_Quit__ shuts down all SDL subsystems and frees the
23 resources allocated to them. This should always be called
24 before you exit. For the sake of simplicity you can set
25 __SDL_Quit__ as your __atexit__ call,
26 like:
27
28
29 SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
30 atexit(SDL_Quit);
31 .
32 .
33
34
35 __Note:__
36
37
38 While using __atexit__ maybe be fine for small programs,
39 more advanced users should shut down SDL in their own
40 cleanup code. Plus, using __atexit__ in a library is a
41 sure way to crash dynamically loaded code
42 !!SEE ALSO
43
44
2 perry 45 __SDL_!QuitSubsystem__, __SDL_Init__
1 perry 46 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.