summary of C-standards workshop at U - (nf)

jim at ism780b.UUCP jim at ism780b.UUCP
Thu Aug 2 14:16:16 AEST 1984


#R:utzoo:-401300:ism780b:25500008:000:664
ism780b!jim    Jul 17 21:33:00 1984

> It would seem that "extern int foo()" would be the best way to declare
> a function with only variable arguments, although doing this would
> prevent the same syntax from being used at a later date to declare
> a function with no arguements.

It seems to me it would make plenty of sense if "extern int foo()"
meant "foo takes an totally unknown (arbitrary) number of variables of
totally unknown (arbitrary) type", which it does anyway, attempts at finding
other syntax to represent the same thing notwithstanding, and if
"extern int foo(void)" (a hack, but a clear one) were used to mean "foo takes
no arguments".

-- Jim Balter, INTERACTIVE Systems (ima!jim)



More information about the Comp.lang.c mailing list