proj1/proj1.c
int less(evento a, evento b) {
    if (a.amd < b.amd) return TRUE;
    else if (a.amd == b.amd) {
        if (a.inicio < b.inicio) return TRUE;
        else if (a.inicio == b.inicio) {
            if (a.sala < b.sala) return TRUE;
        }
    }
    return FALSE;
}
/* Verifies if the first event is prior to the second one. */
Verifies if the first event is prior to the second one.
Verifies if the first event is prior to the second one .
int less(evento a, evento b) {
    if (a.amd < b.amd) return TRUE;
    else if (a.amd == b.amd) {
        if (a.inicio < b.inicio) return TRUE;
        else if (a.inicio == b.inicio) {
            if (a.sala < b.sala) return TRUE;
        }
    }
    return FALSE;
}
int less ( evento a , evento b ) { if ( a . amd < b . amd ) return TRUE ; else if ( a . amd == b . amd ) { if ( a . inicio < b . inicio ) return TRUE ; else if ( a . inicio == b . inicio ) { if ( a . sala < b . sala ) return TRUE ; } } return FALSE ; }
Verifies if the first event is prior to the second one.
Verifies if the first event is prior to the second one .