Newer
Older
#ifndef GOL_H
#define GOL_H
struct GOL
{
unsigned int *current;
unsigned int *next;
unsigned int width;
unsigned int height;
typedef void (*gol_print_colmn)(unsigned int value);
typedef void (*gol_print_ln)(unsigned int line);
gol_t *gol_setup(int width, int height);
void gol_tick(gol_t *g);
void gol_each(gol_t *g, gol_print_colmn colmn, gol_print_ln ln);
void gol_free(gol_t *data);