William H. Hoffman, 82, a housing and building specialist who for 18 years owned and operated a business advising professional builders on compliance with building codes and plans, died April 12 at a medical center in Bradenton, Fla. He had cancer and had suffered a heart attack, his daughter, Deborah Bader, said.

From 1971 until 1986, Mr. Hoffman worked at the National Corporation for Housing Partnerships, a Washington-based organization that promoted and facilitated affordable housing for low-income persons. He was vice president when he left to start his own building advisory business, QuestCo, which he operated until retiring in 2004.

From 1997 until 2004, he and his wife also operated Coffee East, a coffee and wine bar in Easton, Md.

William Howard Hoffman was born in Phillipsburg, N.J., and graduated from Lafayette College in Easton, Pa., in 1952.

Before settling in the Washington area in 1971, Mr. Hoffman was an engineer, construction manager and marketing specialist in California, Connecticut, New York and Pennsylvania.

He lived in Potomac and Bethesda before moving to Easton in 1997 and later to Sarasota, Fla.

His 30-year marriage to Nancy Robbins Hoffman ended in divorce.

Survivors include his wife since 1991, Carolyn L. Kolb of Sarasota; five children from his first marriage, Deborah Bader of Issaquah, Wash., William Hoffman of Philadelphia, Robert Hoffman of Santa Fe, N.M., John Hoffman of Frederick and Nancy Matthews of Albuquerque; and 11 grandchildren.

Bart Barnes