This commit is contained in:
Anton Dolozin 2025-09-30 13:41:20 +02:00
parent b630583869
commit 539a6a08fc

View File

@ -100,11 +100,7 @@ int main() {
printf("Zadaj hladanu surovinu:\n");
/// pole pre hl'adane
char search[LINE_SIZE];
/// ked' nenacitame, ukoncime program
if (!fgets(search, sizeof(search), stdin)) {
return 1;}
/// pre hl'adanie, potrebujeme najst', kde je novy riadok and premenit' ho na null terminator pre porovnanie
search[strcspn(search, "\n")] = '\0';
printf("Zadaj jedalny listok:\n");
/// pocet nacitanych poloziek
int loaded = 0;