diff --git a/zsiKOD b/zsiKOD index dd0bfb7..0193cd6 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); - //printf("Pocet znakov: %d\n",pocet_znakov); + //prinft("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 0; + return ; } \ No newline at end of file