variadic function

Falk Hueffner falk.hueffner@student.uni-tuebingen.de
Sun Oct 19 13:59:00 GMT 2003


Pierre Laplante <laplante@sednove.com> writes:

> If I want to implement a function
> 
> f1(char *fmt, ...) {
>   f2(fmt, ...);
> }
> 
> where f2 is defined as
> 
> f2(char *fmt, ...) {
> }
> 
> that want to call f2 which is itself a variadic function. How can
> I implement this using stdarg?

See the C FAQ (www.eskimo.com/~scs/C-faq/top.html)

-- 
	Falk



More information about the Gcc-help mailing list