sps.c
State moveCol(Table *table, unsigned start, unsigned end) {
    unsigned i = start;

    int direction;
    if (i < end)
        direction = 1;
    else
        direction = -1;

    while (i != end) {
        swapCols(table, i, i + direction);
        i += direction;
    }
    return SUCCESS;
}
// moves a column while shifting the others
moves a column while shifting the others
moves a column while shifting the others
State moveCol(Table *table, unsigned start, unsigned end) {
    unsigned i = start;
    int direction;
    if (i < end)
        direction = 1;
    else
        direction = -1;
    while (i != end) {
        swapCols(table, i, i + direction);
        i += direction;
    }
    return SUCCESS;
}
State moveCol ( Table * table , unsigned start , unsigned end ) { unsigned i = start ; int direction ; if ( i < end ) direction = 1 ; else direction = -1 ; while ( i != end ) { swapCols ( table , i , i + direction ) ; i += direction ; } return SUCCESS ; }
moves a column while shifting the others
moves a column while shifting the others