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 | 144 | (*error)++; |
145 | 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 | 148 | return; |
149 | 149 | } |
150 | 150 | else if(index<strlen(word)) |
... | ... | @@ -223,8 +223,8 @@ void correct_word(char word[], FILE* fp_txt, int longueur) |
223 | 223 | { |
224 | 224 | tempo = fgetc(fp_txt); |
225 | 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 | 229 | fprintf(fp_tamp, "%s", word); |
230 | 230 | long newPosition = ftell(fp_tamp); |
... | ... | @@ -233,8 +233,8 @@ void correct_word(char word[], FILE* fp_txt, int longueur) |
233 | 233 | { |
234 | 234 | tempo = fgetc(fp_txt); |
235 | 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 | 239 | rewind(fp_txt); |
240 | 240 | rewind(fp_tamp); | ... | ... |