SDL 2.0
hello.c File Reference
#include <SDL.h>
+ Include dependency graph for hello.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 10 of file hello.c.

11{
12 if (SDL_Init(0) != 0) {
13 SDL_Log("SDL_Init: %s", SDL_GetError());
14 return 1;
15 }
16
17 SDL_Log("Hello, world!");
18 SDL_Quit();
19 return 0;
20}
#define SDL_GetError
#define SDL_Quit
#define SDL_Init
#define SDL_Log

References SDL_GetError, SDL_Init, SDL_Log, and SDL_Quit.