Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!ncrlnk!ncratl!dspoon From: dspoon@ncratl.Atlanta.NCR.COM (Dave Witherspoon) Newsgroups: comp.lang.c++ Subject: Re: !@#$%#%$%$^%^ Varargs and C++: The untold story Summary: It can be done... Message-ID: <872@ncratl.Atlanta.NCR.COM> Date: 7 Aug 89 14:40:30 GMT References: Organization: NCR Corporation, E&M Atlanta Lines: 21 In article , rogue@andromeda.rutgers.edu.rutgers.edu (Rogue Project) writes: > > If anyone has used varargs with C++ on a system that does not > support vsprintf and vprintf, etc. Could you please e-mail me and tell me > how the !$@#$^%* you did it!!! > I currently have a rather complex variable argument list working under Zortech's C++ compiler (1.07). The thing to remember is that chars and shorts are promoted to ints, and floats are promoted to doubles. Of course, they never come right out and say that! What I've found is that you can only pull ints, doubles, and pointers off a variable arg list. Pulling references off the list can also be done (what's that about there being a thin line between bravery and stupidity...) but with some effort. Hope this helps! -------------------------------David Witherspoon------------------------------- D.Witherspoon@Atlanta.NCR.COM | "Dolphins find humans amusing, but NCR Retail Systems Development/Atlanta| they don't want to talk to them." MY OPINIONS...ALL MINE!!! | - David Byrne