src/conwayio.c
void conway_fdraw_universe(FILE *fp, conway_t *conway)
{
    size_t i, j;

    fprintf(fp, "\n");
    for (i = 0; i < conway->num_rows; ++i) {
        for (j = 0; j < conway->num_cols; ++j) {
            if (conway->universe[i][j].alive) {
                fprintf(fp, "O");
            } else {
                fprintf(fp, "-");
            }
        }
        fprintf(fp, "\n");
    }
}
/* Prints Conway's board to a file */
Prints Conway's board to a file
Prints Conway ' s board to a file
void conway_fdraw_universe(FILE *fp, conway_t *conway)
{
    size_t i, j;
    fprintf(fp, "\n");
    for (i = 0; i < conway->num_rows; ++i) {
        for (j = 0; j < conway->num_cols; ++j) {
            if (conway->universe[i][j].alive) {
                fprintf(fp, "O");
            } else {
                fprintf(fp, "-");
            }
        }
        fprintf(fp, "\n");
    }
}
void conway_fdraw_universe ( FILE * fp , conway_t * conway ) { size_t i , j ; fprintf ( fp , " \n " ) ; for ( i = 0 ; i < conway -> num_rows ; ++ i ) { for ( j = 0 ; j < conway -> num_cols ; ++ j ) { if ( conway -> universe [ i ] [ j ] . alive ) { fprintf ( fp , " " ) ; } else { fprintf ( fp , " " ) ; } } fprintf ( fp , " \n " ) ; } }
Prints Conway's board to a file
Prints Conway ' s board to a file