home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17015 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.3 KB

  1. Path: sparky!uunet!olivea!charnel!rat!usc!cs.utexas.edu!torn!utzoo!telly!druid!darcy
  2. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Multiple Parameter Passing (unspecified number)
  5. Message-ID: <1992Nov22.124159.20593@druid.uucp>
  6. Date: 22 Nov 92 12:41:59 GMT
  7. References: <92321.124834GNR100@psuvm.psu.edu> <BxtrFG.Fq4@portal.hq.videocart.com>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 21
  10.  
  11. dfuller@portal.hq.videocart.com (Dave Fuller) writes:
  12. >GNR100@psuvm.psu.edu writes:
  13. >:    I'm looking to write a function that accepts any number of paramerter.
  14. >    Sort of depends. UNIX versions will use definitions from varargs.h and 
  15. >non-UNIX platforms use stdarg.h (I believe these are the correct header files).
  16.  
  17. No it doesn't depend on Unix vs. non-Unix platforms.  If you have an ANSI
  18. standard compiler (or even some that are otherwise non-standard) you use
  19. stdarg.h.  Where do you get your information Dave?
  20.  
  21. > [...]
  22. >(not all of these are macros. va_alist, va_dcl, and va_list are variables)
  23.  
  24. va_list is a type, not a variable.  va_dcl is more like a magic token.
  25. It is a declaration for the va_alist parameter.
  26.  
  27. -- 
  28. D'Arcy J.M. Cain (darcy@druid.com)  |
  29. D'Arcy Cain Consulting              |   There's no government
  30. Toronto, Ontario, Canada            |   like no government!
  31. +1 416 424 2871          DoD#0082   |
  32.