00001 00002 /* Produce a lot of data for input to ximage. */ 00003 00004 #include <stdio.h> 00005 00006 main(int argc, char* argv[]) 00007 { 00008 int nx = 128, ny = 128, nk = 128; 00009 int i, j, k; 00010 00011 if (argc > 1) nk = atoi(argv[1]); 00012 00013 for (k = 0; k < nk; k++) 00014 for (i = 0; i < nx; i++) 00015 for (j = 0; j < ny; j++) 00016 putchar((char)(i+j+k)); 00017 }