Browse Source

refactoring: description for input handler functions

remotes/origin/develop
Eric Bagus 11 months ago
parent
commit
794c6aa700
  1. 2
      src/inputHandler.c

2
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;
Loading…
Cancel
Save