diff --git a/adminIut.c b/adminIut.c index 4122aa8..547e5c0 100644 --- a/adminIut.c +++ b/adminIut.c @@ -81,17 +81,17 @@ ListeD suppression(ListeD ld,char *departement,char *responsable){ ListeD ModifinbP(ListeD ld, char departement[30], int MnbP, int n){ int comp,trouv,i; - for(i=0;idepartement,departement); if(comp==0) trouv=i; } - if(trouv ==0){ + if(trouv==0){ printf("departement non existant"); exit(1); } else{ - ld[i].nbP=MnbP; + ld->nbP=MnbP; } return ld; }