DOKK / manpages / debian 11 / libsdl1.2-dev / SDL_Init.3.en
SDL_Init(3) SDL API Reference SDL_Init(3)

SDL_Init - Initializes SDL

#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

Tue 11 Sep 2001, 23:00 SDL