home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / std / c / 2973 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1013 b   |  37 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!netsys!decwrl!decwrl!netcomsv!netcom.com!rfg
  3. From: rfg@netcom.com (Ronald F. Guilmette)
  4. Subject: Yet another question about va_start.
  5. Message-ID: <1992Nov6.015516.2350@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Fri, 6 Nov 1992 01:55:16 GMT
  8. Lines: 27
  9.  
  10. In 4.8.1.1 it says:
  11.  
  12.     "The parameter paramN is the identifier of the rightmost
  13.     parameter..."
  14.  
  15. Is this a restriction of standard conforming programs?  On standard
  16. conforming implementations?  Both?  Neither?
  17.  
  18. Note that some implementations permit:
  19.  
  20.     #include <stdarg.h>
  21.  
  22.     va_list ap;
  23.  
  24.     void foobar (int arg1, ...)
  25.     {
  26.         va_start (ap, any bloddy thing you want!$#^% );
  27.         /* ... */
  28.     }
  29.  
  30. -- 
  31.  
  32. // Ron ("Loose Cannon") Guilmette
  33. // uucp: ...uunet!lupine!segfault!rfg
  34. // New new motto:  Quality control is a state of mind.
  35. //   misc.forsale.computers ad, circa 2007:
  36. //       Used Cray wrist watch for sale; 25 bucks or best offer.
  37.