From b540d5f36c0b1d112648c22b34dca15be260e38c Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 27 May 2022 17:25:02 +0200 Subject: [PATCH] created getter for no inputFlags --- include/flags.h | 1 + src/lib/flags.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/flags.h b/include/flags.h index 9bcf06c..9a61ca1 100644 --- a/include/flags.h +++ b/include/flags.h @@ -39,6 +39,7 @@ static int keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS < //GETTERS int getKeyLength(); +inputFlags noFlags(); //SETTERS void setKeyLength(int keyLengthNew); diff --git a/src/lib/flags.c b/src/lib/flags.c index 558c85a..951b203 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -5,6 +5,11 @@ int getKeyLength() return keyLength; } +inputFlags noFlags() +{ + return (inputFlags) {0, 0}; +} + void setKeyLength(int keyLengthNew) { keyLength = keyLengthNew;