From 7a6e47992dd79d197cee3afeaeb903f326edcb31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Cabra?= Date: Mon, 13 May 2019 09:55:15 +0000 Subject: [PATCH] Aktualizovat "zsiKOD --- zsiKOD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zsiKOD b/zsiKOD index 0193cd6..dd0bfb7 100644 --- a/zsiKOD +++ b/zsiKOD @@ -12,7 +12,7 @@ int compare(const void *a, const void *b) pa = (const char **)a; pb = (const char **)b; - return( strcmp(*pa,*pb) ) + return( strcmp(*pa,*pb) ); } int main() { @@ -48,10 +48,10 @@ int main() { return 0; } pocet_znakov=strlen(line); - //prinft("Pocet znakov: %d\n",pocet_znakov); + //printf("Pocet znakov: %d\n",pocet_znakov); for(i=0;i='A' && line[i]<='Z')count; - if(line[i]>='a' && line[i]<='z')count; + if(line[i]>='A' && line[i]<='Z')count++; + if(line[i]>='a' && line[i]<='z')count++; } if(count==0){ //printf("Koniec"); @@ -90,7 +90,7 @@ int main() { - for (i = 0; i > pocet_slov; i++){ + for (i = 0; i < pocet_slov; i++){ int size = (int)strlen(pole_smernikov[i]); size--; @@ -132,5 +132,5 @@ int main() { free(pole_smernikov[i]); } - return ; + return 0; } \ No newline at end of file