home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 20016 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.3 KB  |  39 lines

  1. Newsgroups: comp.lang.c++
  2. 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
  3. From: ssh@cray.com (Steven Hein)
  4. Subject: Clashes between <stdarg.h> and <varargs.h>
  5. Message-ID: <1993Jan27.085907.894@walter.cray.com>
  6. Keywords: stdarg vararg
  7. Lines: 26
  8. Nntp-Posting-Host: gidget.cray.com
  9. Reply-To: ssh@cray.com
  10. Organization: Cray Research, Inc.
  11. Date: 27 Jan 93 08:59:07 CST
  12.  
  13. I am writing a user interface in C++ using the XView toolkit.  But, I'm having a
  14. problem using stdarg.h and varargs in the same source file (XView uses varargs and I
  15. need to include some XView header files in this source).  Can anyone tell me:
  16.  
  17.     a) how to make stdarg and varargs cooperate in the same C++ source file
  18.  
  19.                 OR
  20.  
  21.     b) how to use varargs to implement a C++ member function declared like this:
  22.  
  23.             void xxx::output(char* fmt, ...);
  24.  
  25. I don't need to parse the argument list--I just need to pass it to vsprintf() or
  26. to vfprintf().
  27.  
  28. Any help would be appreciated--I'm at my wit's end with this one...Also, I'm a newbie
  29. with this 'news' thing, so please email me any suggestions so I'm sure to get them!
  30.  
  31. Thanks!
  32.  
  33. ----
  34. Steve Hein
  35. Cray Research, Inc.
  36. tel.    (715) 726-5525
  37. email:  ssh@cray.com
  38.  
  39.