[comp.lang.c++] varargs question

korp@atlantis.ees.anl.gov (Peter Korp) (01/15/91)

I have recently run into a problem in writing a C++ library that utilizes the
varargs package.

I am writing a C++ library that will sit atop a standard C library. In my C++
routines I wish to have the following construct.


myclass::foo(int num_entries ...)

{
	old_function(...);
}


in the external library a routine has been defined as accepting varargs in the
standard "old style" C fashion. My question is how can do this in a portable
fashion? Is it possible for me to pass this variable argument list in a non
portable fashion?

I am using C++ on Sparc based hardware and the source to the C library is
unavailable.

Please respond by mail.

Thanks,

Peter

korp@tripoli.ees.anl.gov