From 76ad6a62a4d72d2633a08aa61b0a97b8775d885e Mon Sep 17 00:00:00 2001 From: Benjamin BACHELARD Date: Thu, 5 Jan 2023 09:56:24 +0100 Subject: [PATCH] fini modifnbP et Enfiler --- adminIut.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }