Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

SDL_Quit (3)

Name

SDL_Quit - Shut down SDL

Synopsis

#include "SDL.h"

void SDL_Quit(void);

Description

SDL_Quit(3)                    SDL API Reference                   SDL_Quit(3)



NAME
       SDL_Quit - Shut down SDL

SYNOPSIS
       #include "SDL.h"

       void SDL_Quit(void);

DESCRIPTION
       SDL_Quit  shuts  down  all SDL subsystems and frees the resources allo-
       cated 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:

       SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
       atexit(SDL_Quit);
       .
       .

              Note:

              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 dynami-
              cally loaded code


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/sdl      |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+
SEE ALSO
       SDL_QuitSubsystem, SDL_Init



NOTES
       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source       was        downloaded        from         https://www.lib-
       sdl.org/release/SDL-1.2.15.tar.gz

       Further information about this software can be found on the open source
       community website at https://www.libsdl.org/.



SDL                         Tue 11 Sep 2001, 23:00                 SDL_Quit(3)