On 1 Jul 2018, at 07:29, Dave Horsfall <dave(a)horsfall.org> wrote:
On Sat, 30 Jun 2018, Arrigo Triulzi wrote:
As I was told this visitor was the R in the
“K&R” book I felt I could finally ask “someone who knew” how printf() worked with a
variable number of arguments.
It wouldn't've used that awful nargs() call at that time, would it? I was glad
when that horror was removed.
I was about 10 at the time, I hope you will excuse me for not recalling this detail. I
just recall the way that he used my “arrows in the street” to explain how printf() walked
through the argument list carrying an arrow on its shoulder, then did what it had to do
until it got to the end of the street. As you can probably imagine it is still how I
visualise the workings of printf() to this day. Note that this was pure K&R, pre-ANSI
C varargs.
Arrigo