home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usc!howland.reston.ans.net!sol.ctr.columbia.edu!caen!umeecs!umn.edu!mmm.serc.3m.com!mmc.mmmg.com!timbuk.cray.com!walter.cray.com!gidget!ssh
- From: ssh@cray.com (Steven Hein)
- Subject: Clashes between <stdarg.h> and <varargs.h>
- Message-ID: <1993Jan27.085907.894@walter.cray.com>
- Keywords: stdarg vararg
- Lines: 26
- Nntp-Posting-Host: gidget.cray.com
- Reply-To: ssh@cray.com
- Organization: Cray Research, Inc.
- Date: 27 Jan 93 08:59:07 CST
-
- I am writing a user interface in C++ using the XView toolkit. But, I'm having a
- problem using stdarg.h and varargs in the same source file (XView uses varargs and I
- need to include some XView header files in this source). Can anyone tell me:
-
- a) how to make stdarg and varargs cooperate in the same C++ source file
-
- OR
-
- b) how to use varargs to implement a C++ member function declared like this:
-
- void xxx::output(char* fmt, ...);
-
- I don't need to parse the argument list--I just need to pass it to vsprintf() or
- to vfprintf().
-
- Any help would be appreciated--I'm at my wit's end with this one...Also, I'm a newbie
- with this 'news' thing, so please email me any suggestions so I'm sure to get them!
-
- Thanks!
-
- ----
- Steve Hein
- Cray Research, Inc.
- tel. (715) 726-5525
- email: ssh@cray.com
-
-