This commit is contained in:
Maryna Kravtsova 2020-11-22 18:17:24 +01:00
parent 73c5bf6d96
commit c4bc6fada7

View File

@ -42,9 +42,9 @@ struct tree* read_tree(int* counter){
} }
if(*c == 1){ if(*c == 1){
r = fgets(buffer,50, stdin); r = fgets(buffer,50, stdin);
//int x = strlen(buffer); int x = strlen(buffer);
// buffer[x-1]='\0'; buffer[x-1]='\0';
if(buffer[0] != '\n'){ if(buffer[0] != '\0'){
printf("Chybna databaza\n"); printf("Chybna databaza\n");
exit(0); exit(0);
} }