created function for deallocating outputFlags
This commit is contained in:
parent
0389ca0226
commit
7b5f1ba9b6
@ -5,6 +5,7 @@
|
||||
|
||||
void checkVersion(inputFlags flags); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
||||
void generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
||||
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
||||
int countIntLength(int number); //RETURNS LENGTH OF number
|
||||
|
||||
#endif
|
||||
|
@ -88,8 +88,7 @@ void checkVersion(inputFlags flags)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)
|
||||
void generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)
|
||||
{
|
||||
int numberBuffer;
|
||||
|
||||
@ -117,8 +116,13 @@ generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
countIntLength(int number)
|
||||
void deallocateOutput(outputFlags flags)
|
||||
{
|
||||
free(flags.outputText);
|
||||
free(flags.usedKey);
|
||||
}
|
||||
|
||||
int countIntLength(int number)
|
||||
{
|
||||
int returning = 1;
|
||||
int buffer = 10;
|
||||
|
Loading…
x
Reference in New Issue
Block a user