sps.c
Cell *selectedCell(Table *table) {
    unsigned row = selUpperBound(table);
    unsigned col = selLeftBound(table);

    if (row != selLowerBound(table))
        return NULL;

    if (col != selRightBound(table))
        return NULL;

    return getCellPtr(table, row, col);
}
// returns NULL if there is more than one cell selected
returns NULL if there is more than one cell selected
returns NULL if there is more than one cell selected
Cell *selectedCell(Table *table) {
    unsigned row = selUpperBound(table);
    unsigned col = selLeftBound(table);
    if (row != selLowerBound(table))
        return NULL;
    if (col != selRightBound(table))
        return NULL;
    return getCellPtr(table, row, col);
}
Cell * selectedCell ( Table * table ) { unsigned row = selUpperBound ( table ) ; unsigned col = selLeftBound ( table ) ; if ( row != selLowerBound ( table ) ) return NULL ; if ( col != selRightBound ( table ) ) return NULL ; return getCellPtr ( table , row , col ) ; }
returns NULL if there is more than one cell selected
returns NULL if there is more than one cell selected