proj1/proj1.c
int procuraEvento(char descricao[]) {
    int i = 0;
    for (; i < contador_eventos; i++) {
        if (strcmp(tab_eventos[i].descricao, descricao) == 0) return i;
    }
    return -1;
}
/* Returns the index of the event with the description that is given (return -1 if the event does not exist). */
Returns the index of the event with the description that is given (return -1 if the event does not exist).
Returns the index of the event with the description that is given ( return - 1 if the event does not exist ) .
int procuraEvento(char descricao[]) {
    int i = 0;
    for (; i < contador_eventos; i++) {
        if (strcmp(tab_eventos[i].descricao, descricao) == 0) return i;
    }
    return -1;
}
int procuraEvento ( char descricao [ ] ) { int i = 0 ; for ( ; i < contador_eventos ; i ++ ) { if ( strcmp ( tab_eventos [ i ] . descricao , descricao ) == 0 ) return i ; } return -1 ; }
Returns the index of the event with the description that is given (return -1 if the event does not exist).
Returns the index of the event with the description that is given ( return - 1 if the event does not exist ) .