All pastes #427497 Raw Edit

Anonymous

public cpp v1 · immutable
·published 2007-04-06 20:27 UTC
rendered paste body
#include "SDL.h"   /* All SDL App's need this */#include <stdio.h>int main(int argc, char *argv[]) {        printf("Initializing SDL.\n");        /* Initialize defaults, Video and Audio */    if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) {         printf("Could not initialize SDL: %s.\n", SDL_GetError());        exit(-1);    }    printf("SDL initialized.\n");    printf("Quiting SDL.\n");        /* Shutdown all subsystems */    SDL_Quit();        printf("Quiting....\n");    exit(0);}