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