This commit is contained in:
Bohdan Kapliuk 2024-09-30 21:10:07 +03:00
parent d41d314399
commit c91b22ad4d

View File

@ -56,10 +56,11 @@ int main(){
}
}
}
int ddfd = strcspn(menu[1].name, " ");
for(int i = 0; i <= count;i++){
int y = 0;
for(int x = 0; x <= strlen(surovina);x++){
if(surovina[x] != menu[i].name[x]){
if(surovina[x] != menu[i].name[x] && surovina[x] != menu[i].name[(strcspn(menu[i].name, " ") + x)+1]){
break;
}
y = 1;