This commit is contained in:
Maryna Kravtsova 2020-11-22 17:09:49 +01:00
parent 1e0272f9e4
commit b54643650e

View File

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