sps.c
State addCol(Table *table) {
    for (unsigned i=0; i < table->rows; i++) {
        table->cells[i] = realloc(table->cells[i], (table->cols + 1) * sizeof(Cell));
        cell_ctor(&table->cells[i][table->cols]);
    }
    table->cols++;
    return SUCCESS;
}
// adds a column to the end of the table
adds a column to the end of the table
adds a column to the end of the table
State addCol(Table *table) {
    for (unsigned i=0; i < table->rows; i++) {
        table->cells[i] = realloc(table->cells[i], (table->cols + 1) * sizeof(Cell));
        cell_ctor(&table->cells[i][table->cols]);
    }
    table->cols++;
    return SUCCESS;
}
State addCol ( Table * table ) { for ( unsigned i = 0 ; i < table -> rows ; i ++ ) { table -> cells [ i ] = realloc ( table -> cells [ i ] , ( table -> cols + 1 ) * sizeof ( Cell ) ) ; cell_ctor ( & table -> cells [ i ] [ table -> cols ] ) ; } table -> cols ++ ; return SUCCESS ; }
adds a column to the end of the table
adds a column to the end of the table