Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

make_data.c

Go to the documentation of this file.
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 }

Generated at Sun Feb 24 09:57:08 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001