Aktualizovat "program.c

This commit is contained in:
Michal Čabra 2019-10-11 09:25:49 +00:00
parent efc7e57d77
commit bf2dfc46c9

View File

@ -126,8 +126,8 @@ int search_string(const char* heap, const char* needle){
//printf("%s",needle_2); //printf("%s",needle_2);
int D = strlen(heap); int D = strlen(heap);
int G = strlen(needle_2)-1; int G = strlen(needle_2)-1;
printf("Dlzka hladaneho= %d\n",D); //printf("Dlzka hladaneho= %d\n",D);
printf("Dlzka celeho je %d\n",G); //printf("Dlzka celeho je %d\n",G);
/* A loop to slide pat[] one by one */ /* A loop to slide pat[] one by one */
for (int i = 0; i <= G - D; i++) { for (int i = 0; i <= G - D; i++) {