This commit is contained in:
Weber 2024-09-29 08:32:05 +00:00
parent 44e2e831ca
commit 5879df953a

View File

@ -1,4 +1,3 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -49,10 +48,10 @@ int main() {
price[strcspn(price, "\n")] = 0; price[strcspn(price, "\n")] = 0;
decode_hacker_script(menu_item, decoded_item); decode_hacker_script(menu_item, decoded_item);
count++; // Zvyšujeme count pre každú načítanú položku
if (strstr(decoded_item, decoded_search) != NULL) { if (strstr(decoded_item, decoded_search) != NULL) {
printf("%s\n%s\n", menu_item, price); printf("%s\n%s\n", menu_item, price);
count++;
} }
} }