buffet
This commit is contained in:
parent
9bc82f2b39
commit
5172cb16f4
@ -36,9 +36,15 @@ 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';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user