home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!decwrl!netcomsv!netcom.com!rfg
- From: rfg@netcom.com (Ronald F. Guilmette)
- Subject: A different question about va_start & va_end.
- Message-ID: <1992Nov6.014500.1353@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Fri, 6 Nov 1992 01:45:00 GMT
- Lines: 27
-
- Must a standard conforming implementation accept:
-
- #include <stdarg.h>
-
- int i;
- int j;
- va_list ap;
-
- void foo (int bar, ...)
- {
- i = (va_start (ap, bar), 99);
- j = (va_end (ap), 88);
- }
-
- In other words, may a programmer safely assume that invocations (or
- expansions) of va_start and va_end are themselves expressions?
-
- The function declarations shown in 4.8.1.1 and 4.8.1.2 seem to suggest
- that the answer is yes.
-
- --
-
- // Ron ("Loose Cannon") Guilmette
- // uucp: ...uunet!lupine!segfault!rfg
- // New new motto: Quality control is a state of mind.
- // misc.forsale.computers ad, circa 2007:
- // Used Cray wrist watch for sale; 25 bucks or best offer.
-