buffet
This commit is contained in:
parent
5172cb16f4
commit
18201f08c2
@ -18,6 +18,10 @@ struct tree* read_tree(){
|
||||
buffer[x-1]='\0';
|
||||
|
||||
assert(r);
|
||||
if(buffer[0] == '\n'){
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(buffer[0] != '\0'){
|
||||
struct tree* node = calloc(1,sizeof(struct tree));
|
||||
@ -45,8 +49,8 @@ void search(struct tree* this){
|
||||
return;
|
||||
}
|
||||
//char* r = fgets(buffer,5,stdin);
|
||||
int x = strlen(buffer);
|
||||
buffer[x-1]='\0';
|
||||
//int x = strlen(buffer);
|
||||
//buffer[x-1]='\0';
|
||||
|
||||
if(buffer[0] == '\n'){
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user