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