telegrafista

This commit is contained in:
Maryna Kravtsova 2020-12-03 15:09:10 +01:00
parent 81cc3046b1
commit fb83ea7a4e

View File

@ -127,7 +127,7 @@ int main (){
char line[MAX]; char line[MAX];
fgets(line, MAX, stdin); fgets(line, MAX, stdin);
line[strlen(line)-1] = '\0'; line[strlen(line)-1] = '\0';
if(line[0] == '\n'){ if(line[0] == '\0'){
destroy(root); destroy(root);
return 0; return 0;
} }
@ -135,5 +135,7 @@ int main (){
printf("\n"); printf("\n");
printf("\n"); printf("\n");
} }
//destroy(root); //destroy(root);
return 0;
} }