|
|
@ -30,6 +30,11 @@ int loadIUT(VilleIUT** tiut){
|
|
|
|
int tlogi;
|
|
|
|
int tlogi;
|
|
|
|
fread(&tlogi,sizeof(int),1,f);
|
|
|
|
fread(&tlogi,sizeof(int),1,f);
|
|
|
|
for(int i=0; i<tlogi; i++){
|
|
|
|
for(int i=0; i<tlogi; i++){
|
|
|
|
|
|
|
|
tiut[i]=(VilleIUT*)malloc(sizeof(VilleIUT));
|
|
|
|
|
|
|
|
if(f==NULL){
|
|
|
|
|
|
|
|
perror("fopen");
|
|
|
|
|
|
|
|
exit(errno);
|
|
|
|
|
|
|
|
}
|
|
|
|
fread(tiut[i]->Ville,sizeof(char),31,f);
|
|
|
|
fread(tiut[i]->Ville,sizeof(char),31,f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for(int i=0; i<tlogi; i++){
|
|
|
|
for(int i=0; i<tlogi; i++){
|
|
|
|