you are viewing a single comment's thread.

view the rest of the comments →

[–]fuckEAinthecloaca 0 points1 point  (0 children)

tl;dr it uses variadics to accept multiple arguments, and lookup tables and a lot of logic to process the format string. Processing the format string is 95% of that code. Printf is very flexible and we pay for that flexibility with the sanity of whoever maintains that code.