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

    fprintf(fp, "\n");
    for (i = 0; i < conway->num_rows; ++i) {
        for (j = 0; j < conway->num_cols; ++j) {
            neighbors = conway_neighbors(conway, i, j);
            fprintf(fp, "%d", neighbors);
        }
        fprintf(fp, "\n");
    }
}
/* Prints Conway's neighbors board to a file */
Prints Conway's neighbors board to a file
Prints Conway ' s neighbors board to a file
void conway_fdraw_neighbors(FILE *fp, conway_t *conway)
{
    size_t i, j;
    int neighbors;
    fprintf(fp, "\n");
    for (i = 0; i < conway->num_rows; ++i) {
        for (j = 0; j < conway->num_cols; ++j) {
            neighbors = conway_neighbors(conway, i, j);
            fprintf(fp, "%d", neighbors);
        }
        fprintf(fp, "\n");
    }
}
void conway_fdraw_neighbors ( FILE * fp , conway_t * conway ) { size_t i , j ; int neighbors ; fprintf ( fp , " \n " ) ; for ( i = 0 ; i < conway -> num_rows ; ++ i ) { for ( j = 0 ; j < conway -> num_cols ; ++ j ) { neighbors = conway_neighbors ( conway , i , j ) ; fprintf ( fp , " " , neighbors ) ; } fprintf ( fp , " \n " ) ; } }
Prints Conway's neighbors board to a file
Prints Conway ' s neighbors board to a file