[TUHS] pic anomalies

Doug McIlroy doug at cs.dartmouth.edu
Tue Dec 31 14:24:02 AEST 2019

The use of %% to designate a literal % in printf is not
a recent convention. It was defined in K&R, first edition.


Ralph Cordery wrote:

Though that may seem odd to our modern C-standardised eyes, it's
understandable in that if it isn't a valid %f, etc., format specifier
then it's a literal percent sign.

More information about the TUHS mailing list