home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / images / imtest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  477 b   |  21 lines

  1. #include <stdio.h>
  2. #include "image.h"
  3.  
  4. int main(int argc, char *argv[]) {
  5.   char fname[81];
  6.   int mode;
  7.   int i;
  8.     while(1) {
  9.         printf("Image viewer test\n");
  10.       printf("Enter a filename and a mode # separated by a space.\n");
  11.       printf("Modes:\n");
  12.       for (i=0; (i<image_modes_total); i++) {
  13.           printf("%d) %s\n", i, image_mode_names[i]);
  14.       }
  15.       printf("Filename and mode: ");
  16.         scanf("%s %d", fname, &mode);
  17.         image_viewer(fname, mode);
  18.   }
  19.     return 0;
  20. }
  21.