added exitCode parameter to noOutput function

This commit is contained in:
Václav Šmejkal 2022-06-12 16:21:12 +02:00
parent 85ec93bb7d
commit 045db6c7db
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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)