@henesy@merveilles.town @neauoire If I'm reading the standard right, (open-std.org/jtc1/sc22/wg14/ww section points 10 and 14) a declaration with an empty parameter type list should mean the same as void fn(...); which means unknown number and types of arguments. Presumably you then could use va_arg facility in its definition.

In any case void fn() and void fn(void) are of different types.


@henesy@merveilles.town @neauoire Using void fn() instead of void fn(...) is allowed but discouraged in ANSI C, while the Plan 9 compilers reject it outright.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko