Listing 2. Beginning of the main function.
int main(){

  allegro_init();
  install_keyboard();
  set_color_depth(32);
  set_gfx_mode(GFX_AUTODETECT_WINDOWED,width,height,0,0);

  //Load an image file from the current directory.
  buffer = load_bitmap("starfish324x330.pcx", NULL);