#include <stdlib.h>
#include <SDL/SDL.h>

int main(int argc, char *argv[])
{
   if (SDL_Init(SDL_INIT_VIDEO) == -1) {
       printf("Can't init SDL:  %s\n", SDL_GetError());
       exit(1);
   }
   atexit(SDL_Quit); 
   SDL_Surface *screen;
   screen = SDL_SetVideoMode(640, 480, 16, SDL_HWSURFACE);
   if (screen == NULL) {
       printf("Can't set video mode: %s\n", SDL_GetError());
       exit(1);
   }   
   SDL_Delay(3000);
   SDL_Quit();
   return 0;
}
