From 178df23585ec8d5d8a8175b9b136571adba0bcca Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 16 Oct 2022 19:42:25 +0200 Subject: [PATCH] created encryptionOperation function see next commit for context --- include/flags.h | 3 +++ src/lib/flags.c | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/include/flags.h b/include/flags.h index 48f88bd..b895b02 100644 --- a/include/flags.h +++ b/include/flags.h @@ -64,4 +64,7 @@ void setEncryptionSeparator(char encryptionSeparatorNew); void setKeyLength(int keyLengthNew); void setFlags(inputFlags newFlags); //.... whatcha think? +//RANDOM SHIT THAT DOESN'T FIT IN MISC, SO I PUT IN HERE +int encryptionOperation(int text, int encryptedText); + #endif diff --git a/src/lib/flags.c b/src/lib/flags.c index 0b7fd19..beeb2cf 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -64,4 +64,11 @@ void setKeyLength(int keyLengthNew) void setFlags(inputFlags newFlags) { flags = newFlags; +} + +//THAT COMMENT AFTER 'SETTERS' +int encryptionOperation(int text, int encryptedText) +{ + //CHANGE THE '-' (MINUS) OPERATOR TO SOMETHING YOU WANT TO USE I GUESS + return text - encryptedText; } \ No newline at end of file