This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: variadic function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]