K&R-style variadic functions
Jacob Carlborg
doob at me.com
Tue Jul 17 07:46:34 PDT 2012
On 2012-07-17 16:36, Regan Heath wrote:
> I believe old-style no parameter function declarations MUST have "void"
> i.e.
>
> int foo(void);
That is still the case, regardless of "style"?
> They cannot read:
>
> int foo();
>
> The latter MUST have parameters, we just can't tell what they are.
Take a look at this:
http://en.wikipedia.org/wiki/K%26R_C#KRC
In that example none of the functions have any parameters declared and
are not called with any arguments.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list