Is 'ghee' used in cooking considered as vegetarian or non-veg?

Because ghee is obtained from milk of cows and buffaloes. There were earlier Gandhians I knew avoided milk,curd,buttermilk,ghee, even they were not wearing chappals. How far it is correct to add 'ghee' in food, being offered to god ?
13 answers 13