Aktualizovat „du6/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-16 08:02:03 +00:00
parent 5b518ecd30
commit 54e5f8a8d6

View File

@ -35,7 +35,13 @@ int main()
//char* r; //char* r;
//int q = 0; //int q = 0;
size_t pocet_znakov = 0; size_t pocet_znakov = 0;
int antiInfC = 0;
while (fgets(line,wSIZE,stdin)) { while (fgets(line,wSIZE,stdin)) {
if(antiInfC == SIZE - 1){
break;
} else{
antiInfC++;
}
k = 0; k = 0;
pocet_znakov = strlen(line); pocet_znakov = strlen(line);
char* all = malloc(pocet_znakov); char* all = malloc(pocet_znakov);