This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: variadic function
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: Pierre Laplante <laplante at sednove dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 19 Oct 2003 15:58:55 +0200
- Subject: Re: variadic function
- References: <Pine.LNX.4.44.0310190950510.11012-100000@octant.laubia.ca>
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