From a0de73329667ea7211ad149056d7b42744132ef9 Mon Sep 17 00:00:00 2001 From: Peter Wiebe Date: Wed, 7 Feb 2024 09:56:20 +0100 Subject: [PATCH] refactoring: nameAusgeben nullt --> nullterminante --- src/main/c/hangman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/hangman.c b/src/main/c/hangman.c index 4b54af8..1d490a4 100644 --- a/src/main/c/hangman.c +++ b/src/main/c/hangman.c @@ -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);