From 794c6aa70000b27bbd3c5cd35d163a6ec4262ee7 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 21:50:51 +0100 Subject: [PATCH] refactoring: description for input handler functions --- src/inputHandler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inputHandler.c b/src/inputHandler.c index 0ecd1d6..39af339 100644 --- a/src/inputHandler.c +++ b/src/inputHandler.c @@ -22,6 +22,7 @@ int getOperationId(char symbol) { return id; } +// returns operation symbol for a specific operation id char getOperationSymbol(int id) { char symbol = ' '; switch (id) { @@ -43,6 +44,7 @@ char getOperationSymbol(int id) { return symbol; } +// Checking if operation id is available int isOperationValid(int id) { if(id < 0 || id > 7) return 0; return 1;