prvy
This commit is contained in:
parent
138fb93dea
commit
af8e949818
@ -68,7 +68,7 @@ struct tree* read_tree(){
|
|||||||
int get_input(char *string){
|
int get_input(char *string){
|
||||||
char* r = fgets(string,SIZE,stdin);
|
char* r = fgets(string,SIZE,stdin);
|
||||||
if(r==NULL){
|
if(r==NULL){
|
||||||
return -1;//EOF
|
return -1;
|
||||||
}
|
}
|
||||||
string[strlen(string)-1]='\0';
|
string[strlen(string)-1]='\0';
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user