sps.c
State swapCols(Table *table, unsigned c1, unsigned c2) {
    // convert to real addressing
    c1--;
    c2--;
    // for each line of the table
    for (unsigned i=0; i<table->rows; i++) {
        swapCell(&table->cells[i][c1], &table->cells[i][c2]);
    }
    return SUCCESS;
}
// swap rows of table, user coordinates
swap rows of table, user coordinates
swap rows of table user coordinates
State swapCols(Table *table, unsigned c1, unsigned c2) {
    c1--;
    c2--;
    for (unsigned i=0; i<table->rows; i++) {
        swapCell(&table->cells[i][c1], &table->cells[i][c2]);
    }
    return SUCCESS;
}
State swapCols ( Table * table , unsigned c1 , unsigned c2 ) { c1 -- ; c2 -- ; for ( unsigned i = 0 ; i < table -> rows ; i ++ ) { swapCell ( & table -> cells [ i ] [ c1 ] , & table -> cells [ i ] [ c2 ] ) ; } return SUCCESS ; }
swap rows of table, user coordinates
swap rows of table user coordinates
// convert to real addressing // for each line of the table