From 5d7bfe32786e0fea5fb128dc563a8aa7ccac6afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Cabra?= Date: Fri, 11 Oct 2019 09:24:01 +0000 Subject: [PATCH] Aktualizovat "program.c --- program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program.c b/program.c index eb35ee5..64c80bc 100644 --- a/program.c +++ b/program.c @@ -125,7 +125,9 @@ 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 G = strlen(needle_2); + printf("Dlzka hladaneho= %d\n",D); + printf("Dlzka celeho je %d\n",G); /* A loop to slide pat[] one by one */ for (int i = 0; i <= G - D; i++) {