From efc7e57d770b195fc24406f39ca5e7ad2c4fa3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Cabra?= Date: Fri, 11 Oct 2019 09:25:35 +0000 Subject: [PATCH] Aktualizovat "program.c --- program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program.c b/program.c index 64c80bc..bddd2f9 100644 --- a/program.c +++ b/program.c @@ -124,8 +124,8 @@ int search_string(const char* heap, const char* needle){ } //printf("%s\n",heap); //printf("%s",needle_2); - int D = strlen(heap)-1; - int G = strlen(needle_2); + int D = strlen(heap); + int G = strlen(needle_2)-1; printf("Dlzka hladaneho= %d\n",D); printf("Dlzka celeho je %d\n",G);