Code:void order() { system("COLOR 0A"); listc(); struct item food; int person_num , amount,i=0 , target[20] ,flag; FILE *pfile; FILE *ofile; pfile = fopen("food menu.txt","rb"); ofile = fopen("order.txt","wb"); if(pfile != NULL && ofile != NULL) { printf("Enter number of person-> "); scanf("%d",&person_num); for(;i<person_num;i++) { printf("\n\nPerson %d enter food serial",i+1); scanf("%d",&target); printf("\n\nEnter amount"); scanf("%d",&amount); printf("Thank You\n\n"); } do { fread(&food,sizeof(food),1,pfile); if(!feof(pfile)) { if ((strcmp) const char*, const char*(target,food.itemnum)==0) { for(i<person_num;i++) { printf("\n\n\n\nPerson %d selected %s",i+1,food.itemname); printf("\nAmount is %d",&amount); // return SUCCESS; } } } }while(!feof(pfile)); fclose(pfile); fclose(ofile); } if(flag==0) { printf("NO MATCH FOUND"); } }