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 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 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
|
int countIntLength(int number); //RETURNS LENGTH OF number
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -88,8 +88,7 @@ void checkVersion(inputFlags flags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)
|
||||||
generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)
|
|
||||||
{
|
{
|
||||||
int numberBuffer;
|
int numberBuffer;
|
||||||
|
|
||||||
@ -117,8 +116,13 @@ generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
void deallocateOutput(outputFlags flags)
|
||||||
countIntLength(int number)
|
{
|
||||||
|
free(flags.outputText);
|
||||||
|
free(flags.usedKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
int countIntLength(int number)
|
||||||
{
|
{
|
||||||
int returning = 1;
|
int returning = 1;
|
||||||
int buffer = 10;
|
int buffer = 10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user