From 2619884fee915d99944254fda8bcab2578c19b45 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 22:59:30 +0100 Subject: [PATCH] refactoring: add further documentation to input.c --- src/input.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/input.c b/src/input.c index f3ce425..ca86e2d 100644 --- a/src/input.c +++ b/src/input.c @@ -91,6 +91,10 @@ void Pausieren(){ //khbit und getch aus dem Internet + +/**checks if there was a console input + *returns int, no parameter + */ int kbhit(void){ struct termios oldt, newt; int ch; @@ -117,6 +121,10 @@ int kbhit(void){ return 0; } + +/**returns the char from console + *returns char, no parameter + */ char getch(void){ char c; system("stty raw");