This commit is contained in:
Maryna Kravtsova 2020-11-22 13:04:50 +01:00
parent 68027a623e
commit 236d1063a3

View File

@ -49,8 +49,9 @@ struct tree* search(struct tree* this){
}*/ }*/
char c = getchar(); char c = getchar();
char buffer[50]; char buffer[50];
buffer[strlen(buffer)-1]='\0'; memset(buffer, 0, 50);
int x = strlen(buffer);
buffer[x-1]='\0';
memcpy(buffer, this->value, 50); memcpy(buffer, this->value, 50);
//printf("%s\n", buffer); //printf("%s\n", buffer);
if(buffer[0] != '*'){ if(buffer[0] != '*'){