Ajout de la fonction de recherche dans un tableau de str.

master
Yann CHAMPEAU 3 years ago
parent 619e557b47
commit 2f478e419f

@ -16,6 +16,21 @@ void menu(void){
printf("Choisissez votre session : ");
}
int loadIUT(char* tiut[]){
break//A FAIRE !
}
int rechercheTabStr(char* tab[],int lTab,char* mot){
if(!lTab){
fprintf(stderr,"Erreur, Pas d'éléments dans le tableau !");
return -1;
}
for(int i=0; i<lTab;i++){
if(tab[i]==mot) return i;
}
return -1;
}
//Listes chainées
int existe(MaillonDep* liste, char* mot){
break//A Faire !

@ -29,6 +29,10 @@ typedef struct file* File; // //
//
void menu(void); //
//
int loadIUT(char* tiut[]); //
//
int rechercheTabStr(char* tab[],int lTab,char* mot); //
//
//
//
//Fonctions relatives aux listes chaînées : --// //

Loading…
Cancel
Save