Initializacia

This commit is contained in:
Kozar 2024-10-02 19:04:28 +00:00
parent 79e0d5633e
commit efd3e34cb5

View File

@ -38,6 +38,14 @@ int contains_normalized(const char *name, const char *search) {
char transformed_name[LINESIZE], transformed_search[LINESIZE];
transform_to_hacker_script(name, transformed_name);
transform_to_hacker_script(search, transformed_search);
for (int i = 0; transformed_name[i]; i++) {
transformed_name[i] = tolower(transformed_name[i]);
}
for (int i = 0; transformed_search[i]; i++) {
transformed_search[i] = tolower(transformed_search[i]);
}
return strstr(transformed_name, transformed_search) != NULL;
}