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