He was known for his occasionally deeply offensive remarks — and for gamely fulfilling more than 20,000 royal engagements to boost British interests at home and abroad. He headed hundreds of charities, founded programs that helped British schoolchildren participate in challenging outdoor adventures, and played a prominent part in raising his four children, including his eldest son, Prince Charles, the heir to the throne.