File: main_cli.c

package info (click to toggle)
libsdl2 2.26.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 80,452 kB
  • sloc: ansic: 293,898; cpp: 188,785; objc: 10,375; xml: 6,368; sh: 5,171; perl: 1,998; makefile: 944; asm: 661; javascript: 286; python: 109
file content (14 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define SDL_MAIN_HANDLED
#include "SDL.h"
#include <stdio.h>

int main(int argc, char *argv[]) {
    SDL_SetMainReady();
    if (SDL_Init(0) < 0) {
        fprintf(stderr, "could not initialize sdl2: %s\n", SDL_GetError());
        return 1;
    }
    SDL_Delay(100);
    SDL_Quit();
    return 0;
}