Mort Walker, the creator of “Beetle Bailey,” a comic strip about an Army private who malingered his way through seven decades at Camp Swampy to the consternation of his commanding officers and the delight of his fans in the armed forces and beyond, died on Saturday at his home in Stamford, Conn. He was 94.

His death was confirmed by his son Brian.

Mr. Walker had the longest tenure of any cartoonist on an original creation, King Features, which began its syndication of “Beetle Bailey” in 1950, said in a statement.

“Little did I know when I was drafted that I was going to get almost four years of free research,” Mr. Walker recalled in his collection “The Best of Beetle Bailey” (1984).

“The Army thoughtfully sent me to a number of places so that my experiences could be broadest,” he wrote. “I was a private, a corporal, a sergeant and a lieutenant and I was a goof-up in every rank.”