varargs -> varargs mystery

Doug Gwyn gwyn at smoke.brl.mil
Fri May 17 13:43:52 AEST 1991


In article <1991May16.173145.2440 at philmtl.philips.ca> ray at philmtl.philips.ca (Ray Dunn) writes:
-What I've found this means in practice is that when you write a varargs
-function it's usually best to write it as *two* functions, fn and vfn,
-where fn creates the va_list and passes it vfn where the work is actually
-done.
-Both fn and vfn can then be called as required.

Exactly right.



More information about the Comp.lang.c mailing list