From 353ca94fe162b8e220df3e48786487775680fab9 Mon Sep 17 00:00:00 2001 From: Peter Wiebe Date: Tue, 6 Feb 2024 18:01:27 +0100 Subject: [PATCH] =?UTF-8?q?Commit=203=20-=20func=20clearscreen=20hinzuf?= =?UTF-8?q?=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/hangman.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/c/hangman.c b/src/main/c/hangman.c index 3591d46..a9148fe 100644 --- a/src/main/c/hangman.c +++ b/src/main/c/hangman.c @@ -5,5 +5,14 @@ #include void protokoll(); +void clear_screen(); -void protokoll(){} \ No newline at end of file +void protokoll(){ + clear_screen(); +} + +void clear_screen() { + system("clear"); + // system("cls"); // fuer Windows + // system("clear"); // fuer UNIX/Linux +} \ No newline at end of file