Actress Eileen Brennan as Capt. Doreen Lewis in a scene from "Private Benjamin" (1980). (AP Photo/Warner Brothers Pictures, File)

Eileen Brennan, who went from musical comedy on Broadway to wringing laughs out of memorable characters in such films as “Private Benjamin” and “Clue,” died July 28 at her home in Burbank, Calif. She was 80.

Her managers, Jessica Moresco and Al Onorato, said she had bladder cancer.

Ms. Brennan got her first big role on the New York stage in “Little Mary Sunshine,” a musical comedy that won her the 1960 Obie award for best actress. Along with her “excellent singing voice,” her performance was “radiant and comic,” said a New York Times review.

But it was a series of sharp-tongued roles that won her fans on television and in movies, including gruff Army Capt. Doreen Lewis in 1980’s “Private Benjamin.” She also appeared in “Clue” (1985) as the aloof Mrs. Peacock and played the mean orphanage superintendent Miss Bannister in 1988’s “The New Adventures of Pippi Longstocking.”

“I love meanies, and this goes back to Capt. Lewis in ‘Private Benjamin,’ ” Ms. Brennan said in a 1988 interview with the Associated Press. “You know why? Because they have no sense of humor. People who are mean or unkind or rigid — think about it — cannot laugh at themselves. If we can’t laugh at ourselves and the human condition, we’re going to be mean.”

“Private Benjamin” brought Ms. Brennan a supporting actress nomination for an Oscar. She also won an Emmy for repeating her “Private Benjamin” role in the television version, and was nominated six other times for guest roles on such shows as “Newhart,” “thirtysomething,” “Taxi” and “Will & Grace.”

Ms. Brennan’s “Private Benjamin” role led to an enduring friendship with the movie’s star, Goldie Hawn. A couple of years after they filmed the movie, Ms. Brennan and Hawn had dinner one night in 1982 in Venice, Calif. As they left the restaurant, Ms. Brennan was struck by a car. Her legs were smashed, bones on the left side of her face were broken, her left eye socket was shattered. She said she fought her injuries with rage.

“I was no saint,” she said in an interview with Ladies Home Journal. “I was angry, and anger is a powerful emotion. It increased my determination not to go under, to get well.”

Ms. Brennan became dependent on painkillers, and two years after the accident she entered the Betty Ford Center to cure her addiction.

“We get addicted to dull the pain of life,” she told the magazine.

“But once we accept that life is tough and painful, we can move on and grow and evolve.”

A decade after the accident, she said she was glad she was struck by the car.

“You learn from powerful things,” she said in 1992. “Initially, there’s enormous anger, but your priorities get shifted around.”

Ms. Brennan was a member of the original company of “Hello, Dolly” on Broadway. From the New York stage, she moved to the screen in “Divorce American Style” and “The Last Picture Show.” She also appeared on “Rowan & Martin’s Laugh-In” and had TV guest shots on “All in the Family,” “McMillan & Wife,” “Kojak,” “The Love Boat,” “Murder She Wrote” and “Mad About You,” among other shows.

She was born Verla Eileen Regina Brennan in Los Angeles on Sept. 3, 1932. She was educated in convent schools and studied at Georgetown University and the American Academy of Dramatic Arts in New York.

Her marriage to David J. Lampson ended in divorce. Survivors include two sons.

— Associated Press