Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!spool2.mu.edu!uwm.edu!ux1.cso.uiuc.edu!milo.mcs.anl.gov!atlantis.ees.anl.gov!korp From: korp@atlantis.ees.anl.gov (Peter Korp) Newsgroups: comp.lang.c++ Subject: varargs question Message-ID: <1991Jan14.175929.17379@mcs.anl.gov> Date: 14 Jan 91 17:59:29 GMT Sender: news@mcs.anl.gov Organization: Advanced Computer Application Center, Argonne National Laboratory Lines: 29 Nntp-Posting-Host: atlantis.ees.anl.gov 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