From b6819fbebdbb559ac2ad28bc0b3406f128bfbc8d Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 4 May 2022 18:42:30 +0200 Subject: [PATCH] created noOutput flag --- include/flags.h | 5 +++++ src/lib/flags.c | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/include/flags.h b/include/flags.h index 8c88e0a..80dc3a3 100644 --- a/include/flags.h +++ b/include/flags.h @@ -13,7 +13,9 @@ //VARIABLES static int keyLength = 50; + static int skipCheck = 0; +static int noOutput = 0; //FUNCTIONS int getSkipCheck(); @@ -22,4 +24,7 @@ void setSkipCheck(int skipCheckNew); int getKeyLength(); void setKeyLength(int keyLengthNew); +int getNoOutput(); +void setNoOutput(int noOutputNew); + #endif diff --git a/src/lib/flags.c b/src/lib/flags.c index cd90ca0..d1c8bad 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -18,4 +18,14 @@ int getKeyLength() void setKeyLength(int keyLengthNew) { keyLength = keyLengthNew; +} + +int getNoOutput() +{ + return noOutput; +} + +void setNoOutput(int noOutputNew) +{ + noOutput = noOutputNew; } \ No newline at end of file