sps.c
void printTable(Table *table, FILE *f) {
    for (unsigned i=0; i < table->rows; i++) {
        for (unsigned j=0; j < table->cols; j++) {
            printCell(table, &table->cells[i][j], f);

            if (j < table->cols - 1)
                fputc(table->delim, f);
            else
                fputc('\n', f);
        }
    }
}
// prints the table into a file
prints the table into a file
prints the table into a file
void printTable(Table *table, FILE *f) {
    for (unsigned i=0; i < table->rows; i++) {
        for (unsigned j=0; j < table->cols; j++) {
            printCell(table, &table->cells[i][j], f);
            if (j < table->cols - 1)
                fputc(table->delim, f);
            else
                fputc('\n', f);
        }
    }
}
void printTable ( Table * table , FILE * f ) { for ( unsigned i = 0 ; i < table -> rows ; i ++ ) { for ( unsigned j = 0 ; j < table -> cols ; j ++ ) { printCell ( table , & table -> cells [ i ] [ j ] , f ) ; if ( j < table -> cols - 1 ) fputc ( table -> delim , f ) ; else fputc ( ' \n ' , f ) ; } } }
prints the table into a file
prints the table into a file