This commit is contained in:
Maryna Kravtsova 2020-11-22 16:37:04 +01:00
parent 9bc82f2b39
commit 5172cb16f4

View File

@ -36,9 +36,15 @@ struct tree* read_tree(){
}
void search(struct tree* this){
char buffer[5];
memset(buffer,0,5);
char* r = fgets(buffer,5,stdin);
if(fgets(buffer, 5, stdin) == NULL){
printf("Koniec vstupu\n");
return;
}
//char* r = fgets(buffer,5,stdin);
int x = strlen(buffer);
buffer[x-1]='\0';