File: hello.c

package info (click to toggle)
libsdl2 2.32.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 72,020 kB
  • sloc: ansic: 310,242; objc: 10,843; cpp: 9,959; xml: 6,904; sh: 5,714; perl: 3,277; python: 1,643; makefile: 1,022; asm: 661; javascript: 286
file content (20 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (14)
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;
}