Ubuntu Manpages

#include "SDL.h"

int SDL_Init(Uint32 flags);

Initializes SDL. This should be called before all other SDL functions. The flags parameter specifies what part(s) of SDL to initialize.

Initializes the timer subsystem.
Initializes the audio subsystem.
Initializes the video subsystem.
Initializes the cdrom subsystem.
Initializes the joystick subsystem.
Initialize all of the above.
Prevents SDL from catching fatal signals.

Returns -1 on an error or 0 on success.

SDL_Quit, SDL_InitSubSystem