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

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!decwrl!netcomsv!netcom.com!rfg
  3. From: rfg@netcom.com (Ronald F. Guilmette)
  4. Subject: A different question about va_start & va_end.
  5. Message-ID: <1992Nov6.014500.1353@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Fri, 6 Nov 1992 01:45:00 GMT
  8. Lines: 27
  9.  
  10. Must a standard conforming implementation accept:
  11.  
  12.     #include <stdarg.h>
  13.  
  14.     int i;
  15.     int j;
  16.     va_list ap;
  17.  
  18.     void foo (int bar, ...)
  19.     {
  20.         i = (va_start (ap, bar), 99);
  21.         j = (va_end (ap), 88);
  22.     }
  23.  
  24. In other words, may a programmer safely assume that invocations (or
  25. expansions) of va_start and va_end are themselves expressions?
  26.  
  27. The function declarations shown in 4.8.1.1 and 4.8.1.2 seem to suggest
  28. that the answer is yes.
  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.