Listing 2. Initializing the VGA Mode

   char *video_buff;
    * the above statement must be in the
    * earliest possible position in your
    * main() function. The * vga_init()
    * function is not directly related to
    * the VGA graphics mode, but is needed
    * for any of the SVGALIB functions to
    * work properly. It is important that this
    * function is called as soon as possible
    * after the program executes.
   video_buff = vga_getgraphmem();

   union REGS r, s; = 0x13; /* 0x13==VGA, 0x03== ext */
   int386 (0x10, &r, &s);