sps.c
State icol_cmd(Context ctx) {
    if (ctx.argStr[0] != '\0')
        return ERR_BAD_SYNTAX;

    State s;
    s = addCol(ctx.table);

    if (s == SUCCESS) {
        unsigned start = ctx.table->cols;
        unsigned end = selLeftBound(ctx.table);
        s = moveCol(ctx.table, start, end);
    }
    return s;
}
// inserts an empty column left from the selected cells
inserts an empty column left from the selected cells
inserts an empty column left from the selected cells
State icol_cmd(Context ctx) {
    if (ctx.argStr[0] != '\0')
        return ERR_BAD_SYNTAX;
    State s;
    s = addCol(ctx.table);
    if (s == SUCCESS) {
        unsigned start = ctx.table->cols;
        unsigned end = selLeftBound(ctx.table);
        s = moveCol(ctx.table, start, end);
    }
    return s;
}
State icol_cmd ( Context ctx ) { if ( ctx . argStr [ 0 ] != ' \0 ' ) return ERR_BAD_SYNTAX ; State s ; s = addCol ( ctx . table ) ; if ( s == SUCCESS ) { unsigned start = ctx . table -> cols ; unsigned end = selLeftBound ( ctx . table ) ; s = moveCol ( ctx . table , start , end ) ; } return s ; }
inserts an empty column left from the selected cells
inserts an empty column left from the selected cells