home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / std / c / 2984 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!decuac!pa.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamond
  3. From: diamond@jit345.bad.jit.dec.com (Norman Diamond)
  4. Subject: Re: Yet another question about va_start.
  5. Message-ID: <BxALs3.JMG@jrd.dec.com>
  6. Sender: usenet@jrd.dec.com (USENET News System)
  7. Nntp-Posting-Host: jit345
  8. Reply-To: diamond@jit.dec.com (Norman Diamond)
  9. Organization: Digital Equipment Corporation Japan , Tokyo
  10. References: <1992Nov6.015516.2350@netcom.com>
  11. Date: Fri, 6 Nov 1992 11:40:51 GMT
  12. Lines: 28
  13.  
  14. In article <1992Nov6.015516.2350@netcom.com> rfg@netcom.com (Ronald F. Guilmette) writes:
  15. >In 4.8.1.1 it says:
  16. >    "The parameter paramN is the identifier of the rightmost
  17. >    parameter..."
  18. >Is this a restriction of standard conforming programs?
  19.  
  20. This time I'll get it write.
  21. s/standard conforming programs/strictly conforming programs/whew
  22.  
  23. Yes.
  24.  
  25. >On standard conforming implementations?
  26.  
  27. How could it be?  The program is the one with code invoking va_start().
  28.  
  29. >Note that some implementations permit:
  30. >    #include <stdarg.h>
  31. >    va_list ap;
  32. >    void foobar (int arg1, ...) {
  33. >        va_start (ap, any bloddy thing you want!$#^% );
  34. >    }
  35.  
  36. Some implementations permit dereferencing null pointers too.
  37. There's no Constraints paragraph in section 4.8.1.1.
  38. --
  39. Norman Diamond       diamond@jit081.enet.dec.com
  40. If this were the company's opinion, I wouldn't be allowed to post it.
  41. "It's been a lovely recession."
  42.