home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12320 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.1 KB

  1. Path: sparky!uunet!mcsun!ieunet!!bsullivn
  2. From: bsullivn@sc.sni.ie (Bryan O'Sullivan)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Is "...", instead of ",..." legal ?
  5. Message-ID: <157@sc.sni.ie>
  6. Date: 14 Aug 92 11:49:54 GMT
  7. Article-I.D.: sc.157
  8. References: <1992Aug13.002717.18476@megadata.mega.oz.au>
  9. Reply-To: bryan@sc.sni.ie
  10. Organization: Siemens-Nixdorf Software Development Centre, Dublin
  11. Lines: 18
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14.  
  15.  
  16. scott@megadata.mega.oz.au (Scott Humphreys) writes:
  17.  
  18. : My question is: is this legal : int foo (...);
  19. : That is - can I legally declare a function 
  20. : with none or many arguments, or does it HAVE to have
  21. : at least one argument.
  22.  
  23. What you suggest is illegal.  Gcc might let you get away with it, but
  24. don't think about porting your code.  You need at least one argument.
  25.  
  26.     -- Bryan
  27.  
  28. -- 
  29. Bryan O'Sullivan                                             +353-1-767551 x225
  30. Siemens-Nixdorf Informationssysteme AG                          bryan@sc.sni.ie
  31. Software Development Centre                    "Theory like mist on eyeglasses.
  32. Dublin                                          Obscure facts." -- Charlie Chan
  33.