implemented the INVALID_TEXT exit value

This commit is contained in:
Václav Šmejkal 2022-06-12 16:13:23 +02:00
parent 32d5022b29
commit 7245b03a37
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -26,7 +26,7 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags)
if (strcmp(text, "") == 0)
{
if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n");
exit(1);
exit(INVALID_TEXT);
}
//VARIABLES