buffet
This commit is contained in:
parent
9bc82f2b39
commit
5172cb16f4
@ -35,13 +35,19 @@ struct tree* read_tree(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
void search(struct tree* this){
|
void search(struct tree* this){
|
||||||
|
|
||||||
|
|
||||||
char buffer[5];
|
char buffer[5];
|
||||||
memset(buffer,0,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);
|
int x = strlen(buffer);
|
||||||
buffer[x-1]='\0';
|
buffer[x-1]='\0';
|
||||||
|
|
||||||
if(buffer[0] == '\n'){
|
if(buffer[0] == '\n'){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user