Question 15.9

My compiler isn't letting me declare a function

	int f(...)
	{
	}
i.e. with no fixed arguments.


Standard C requires at least one fixed argument, in part so that you can hand it to va_start.

References: ANSI Sec. 3.5.4, Sec. 3.5.4.3, Sec. 4.8.1.1
ISO Sec. 6.5.4, Sec. 6.5.4.3, Sec. 7.8.1.1
H&S Sec. 9.2 p. 263


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback