home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12461 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!mineng.dmpe.CSIRO.AU!dmssyd.syd.dms.CSIRO.AU!megadata!scott
  3. From: scott@megadata.mega.oz.au (Scott Humphreys)
  4. Subject: Summary: Is "...", instead of ",..." legal ?
  5. Message-ID: <1992Aug18.012912.16599@megadata.mega.oz.au>
  6. Keywords: variable arguments
  7. Lines: 19
  8. Sender: news@megadata.mega.oz.au
  9. Organization: Megadata P/L, North Ryde, Sydney, Aust.
  10. Date: Tue, 18 Aug 1992 01:29:12 GMT
  11.  
  12. Thanks to all that e-mailed me about this question:
  13. > In various books describing the expansion to ANSI-C,
  14. > one of the differences is described as the inclusion
  15. > of the ",..." operator for function prototypes
  16. > [ meaning that a variable number of arguments follow-
  17. >   e.g. int printf (const char *, ...);  ]
  18. > My question is: is this legal : int foo (...);
  19.  
  20. No - it isn't legal, although gcc 2.2.2 has
  21. extended its language to support (ignore ?) it.
  22. The only 'bug' is that I cannot find it in the 'info gcc'
  23. file as an extension of the language.
  24.  
  25. Thanks for your time.
  26. -- 
  27. Dad to Jill (6), Hugh (3), Rhett (1), ? (find out in Dec).
  28. email:  scott@megadata.mega.oz.au |        /\          _/_ _/_ 
  29. fax:    (Int'l +61) (02) 887-4847 |       /  )  _. ____/   /   
  30. voice:  (Int'l +61) (02) 805-0899 |      /__/__(__(_) (___<__  
  31.