SDL_Quit - Man Page

Shut down SDL


#include "SDL.h"

void SDL_Quit(void);


SDL_Quit shuts down all SDL subsystems and frees the resources allocated to them. This should always be called before you exit. For the sake of simplicity you can set SDL_Quit as your atexit call, like:



While using atexit maybe be fine for small programs, more advanced users should shut down SDL in their own cleanup code. Plus, using atexit in a library is a sure way to crash dynamically loaded code

See Also

SDL_QuitSubsystem, SDL_Init

Referenced By

SDL_Init(3), SDL_InitSubSystem(3), SDL_QuitSubSystem(3).

Tue 11 Sep 2001, 23:00 SDL API Reference