"..." in declarations

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Jul 16 18:53:53 AEST 1989


In article <3994 at udccvax1.acs.udel.EDU> gdtltr at vax1.acs.udel.EDU (Gary D Duzan) writes:
>   On page 155 of K&R Second Edition, "..." is used for creating variable
>argument lists in declarations. What I want to know is if this is generally
>accepted and/or used.

It's the only portable way of creating printf-like functions in a
Standard C environment.  Of course, older compilers don't support
this syntax, so its use is limited to recent and future compilers.



More information about the Comp.lang.c mailing list