🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2072

A different question about va_start & va_end.

#2072
From: Ronald F. Guilmette
Date: Fri, 06 Nov 1992 01:45
27 lines
1073 bytes
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.
Technical Details
Message-ID: <1992Nov6.014500.1353@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!decwrl!netcomsv!netcom.com!rfg

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!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