|
|
@ -118,7 +118,7 @@ void nameAusgeben(){ |
|
|
|
char name[50]; |
|
|
|
int i = 5; |
|
|
|
int zaehler = 0; |
|
|
|
int nullt; |
|
|
|
int nullterminante; |
|
|
|
|
|
|
|
FILE *fp = NULL; |
|
|
|
fp = fopen("hangman.txt", "r"); |
|
|
@ -128,7 +128,7 @@ void nameAusgeben(){ |
|
|
|
zaehler++; |
|
|
|
i++; |
|
|
|
} |
|
|
|
nullt = zaehler; |
|
|
|
nullterminante = zaehler; |
|
|
|
while(zaehler != 0){ |
|
|
|
name[--zaehler] = KonfDatei[--i]; |
|
|
|
} |
|
|
@ -138,7 +138,7 @@ void nameAusgeben(){ |
|
|
|
i++; |
|
|
|
} |
|
|
|
|
|
|
|
name[nullt] = '\0'; |
|
|
|
name[nullterminante] = '\0'; |
|
|
|
printf("%s\n", name); |
|
|
|
|
|
|
|
fclose(fp); |
|
|
|