head	1.2;
access;
symbols;
locks; strict;
comment	@// @;


1.2
date	94.08.29.04.53.03;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	94.08.15.04.47.31;	author rjj;	state Exp;
branches;
next	;


desc
@Test program for the game of life.
@


1.2
log
@Corrected file name in file header, added exit() to main().
@
text
@// test-life.c          Section: 14.2
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.


#include "life.h"

int main( int argc, char * argv[] ) {

    unsigned int
	iterations = ( argc > 1 ? atoi( argv[1] ) : 0 );
    if ( iterations <= 0 ) {
	iterations = 1;
    }

    cerr << "Use " << iterations << " as the iteration count." << endl;

    IA_Image<IA_Point<int>,u_char>
	a = read_uchar_PGM( cin );

    life( a, iterations ).write_PGM( cout );

    exit( 0 );
}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
// test-life.h          Section: 14.2
d8 1
a8 1
void main( int argc, char * argv[] ) {
d22 2
@
