From 045db6c7db9184746d8daa09234927183a593ec1 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 12 Jun 2022 16:21:12 +0200 Subject: [PATCH] added exitCode parameter to noOutput function --- include/flags.h | 2 +- src/lib/flags.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/flags.h b/include/flags.h index 6757bdb..ab71e73 100644 --- a/include/flags.h +++ b/include/flags.h @@ -51,7 +51,7 @@ static unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, US //GETTERS unsigned long getKeyLength(); inputFlags noFlags(); //THIS GENERATES inputFlags WITH DEFAULT VALUES -outputFlags noOutput(); //SAME AS noFlags() BUT FOR outputFlags +outputFlags noOutput(unsigned char exitCode); //SAME AS noFlags() BUT FOR outputFlags //SETTERS void setKeyLength(int keyLengthNew); diff --git a/src/lib/flags.c b/src/lib/flags.c index f6c197d..5993e3f 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -10,9 +10,9 @@ inputFlags noFlags() return (inputFlags) {0, 0, 1}; } -outputFlags noOutput() +outputFlags noOutput(unsigned char exitCode) { - return (outputFlags) {"", "", 0, 0}; + return (outputFlags) {"", "", 0, 0, exitCode}; } void setKeyLength(int keyLengthNew)