Prototyping Question
der Mouse
mouse at thunder.mcrcim.mcgill.edu
Sun Jun 16 06:39:18 AEST 1991
In article <1991Jun14.122200.3710 at socrates.umd.edu>, cm315a at socrates.umd.edu (cmis 315 section 4011) writes:
> I have a function that takes one, or more parameters. If I decalre
> it as: void funct(char *, ... ) the calls to it with one or two (or
> more) parameters passes without errors, but when the compiler comes
> to the function itself, I get an error - not enough parameters.
> But on the otherhand if I declare it as: void funct(char *, int), the
> calls to the function with one parameter cause an error.
I'd need to see the prototype and the function definition (and,
preferably, a few calls of both types) to say much. Most likely
explanation that comes to mind is that your prototype disagrees with
your definition.
der Mouse
old: mcgill-vision!mouse
new: mouse at larry.mcrcim.mcgill.edu
More information about the Comp.lang.c
mailing list