File: hello.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 (20 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright 2019 Collabora Ltd.
 * SPDX-License-Identifier: Zlib
 * (see "zlib/libpng" in debian/copyright)
 */

#include <SDL.h>

int
main (int argc, char **argv)
{
  if (SDL_Init(0) != 0) {
      SDL_Log("SDL_Init: %s", SDL_GetError());
      return 1;
  }

  SDL_Log("Hello, world!");
  SDL_Quit();
  return 0;
}