created code for countRepeatedKeySize

WARNING: This will work only if you don't change textKeyChain gen, so pls don't
This commit is contained in:
Václav Šmejkal 2022-08-24 15:49:15 +02:00
parent 3efb4e6cd0
commit 09aa76a33d
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -353,8 +353,14 @@ unsigned long countUnusedKeySize(char *text, char *key)
unsigned long countRepeatedKeySize(UNUSED char *text, UNUSED char *key) unsigned long countRepeatedKeySize(UNUSED char *text, UNUSED char *key)
{ {
//TODO: FIX unsigned long returning = 0;
return 0;
if (strlen(key) < strlen(text))
{
returning = strlen(text) - strlen(key);
}
return returning;
} }
unsigned long compareTimeMicro(struct timeval startTime, struct timeval finishTime) unsigned long compareTimeMicro(struct timeval startTime, struct timeval finishTime)