This is the mail archive of the gcc@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: Passing va_args...



Kalaky <kalaky@gmail.com> writes:

 > I'am looking for some way to pass variable arguments to another
 > function that receives variable arguments without using va_list.

This is impossible.

what about? #define DOTS ...

function_1 (int z, ...);
function_2 (int z, ...);
{
  return function_1 (z, DOTS);
}



Andreas.



--JYB



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