From 21f38dd23b00f3d672cb8cbc7a0d67317bfb99ce Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Thu, 12 Jan 2023 14:39:04 +0100 Subject: [PATCH] Modification de la fonction loadIUT. --- src/annexe/saeAnnexe.c | 11 +++++------ src/annexe/saeAnnexe.h | 6 +++--- src/saeMain.c | 3 ++- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/annexe/saeAnnexe.c b/src/annexe/saeAnnexe.c index 9eee4ca..db14979 100644 --- a/src/annexe/saeAnnexe.c +++ b/src/annexe/saeAnnexe.c @@ -20,19 +20,18 @@ void menu(void){ printf("Choisissez votre session : "); } -int loadIUT(VilleIUT** tiut){ +VilleIUT** loadIUT(VilleIUT** tiut, int* tlogi){ FILE* f=fopen("Etudiants.bin","rb"); if(f==NULL){ perror("fopen"); exit(errno); } MaillonDep* m; - int tlogi; - fread(&tlogi,sizeof(int),1,f); - for(int i=0; iVille,sizeof(char),31,f); } - for(int i=0; i