Commit f2b17cb2c7074f4c1424f06b61ba7e984453674d
1 parent
ffa95c23
Correction d'une petite erreur sur l'affichage
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
@@ -144,7 +144,7 @@ void add_error(int* error, char word[], int index, Node Tree, FILE* fp_txt, int* | @@ -144,7 +144,7 @@ void add_error(int* error, char word[], int index, Node Tree, FILE* fp_txt, int* | ||
144 | (*error)++; | 144 | (*error)++; |
145 | if(index==0) | 145 | if(index==0) |
146 | { | 146 | { |
147 | - printf("Le mot %s ne correspond à aucun mot du dictionnaire.\n", word); | 147 | + printf("Le mot '%s' ne correspond à aucun mot du dictionnaire.\n\n", word); |
148 | return; | 148 | return; |
149 | } | 149 | } |
150 | else if(index<strlen(word)) | 150 | else if(index<strlen(word)) |
@@ -223,8 +223,8 @@ void correct_word(char word[], FILE* fp_txt, int longueur) | @@ -223,8 +223,8 @@ void correct_word(char word[], FILE* fp_txt, int longueur) | ||
223 | { | 223 | { |
224 | tempo = fgetc(fp_txt); | 224 | tempo = fgetc(fp_txt); |
225 | if(tempo==EOF) break; | 225 | if(tempo==EOF) break; |
226 | - if(tempo=='\n'); | ||
227 | - fputc(tempo, fp_tamp); | 226 | + //if(tempo=='\n'); |
227 | + fputc(tempo, fp_tamp); | ||
228 | } | 228 | } |
229 | fprintf(fp_tamp, "%s", word); | 229 | fprintf(fp_tamp, "%s", word); |
230 | long newPosition = ftell(fp_tamp); | 230 | long newPosition = ftell(fp_tamp); |
@@ -233,8 +233,8 @@ void correct_word(char word[], FILE* fp_txt, int longueur) | @@ -233,8 +233,8 @@ void correct_word(char word[], FILE* fp_txt, int longueur) | ||
233 | { | 233 | { |
234 | tempo = fgetc(fp_txt); | 234 | tempo = fgetc(fp_txt); |
235 | if(tempo==EOF) break; | 235 | if(tempo==EOF) break; |
236 | - if(tempo=='\n'); | ||
237 | - fputc(tempo, fp_tamp); | 236 | + //if(tempo=='\n'); |
237 | + fputc(tempo, fp_tamp); | ||
238 | } | 238 | } |
239 | rewind(fp_txt); | 239 | rewind(fp_txt); |
240 | rewind(fp_tamp); | 240 | rewind(fp_tamp); |