Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.lang.c Subject: Re: Prototyping Question Keywords: Prototype Message-ID: <1991Jun15.203918.4038@thunder.mcrcim.mcgill.edu> Date: 15 Jun 91 20:39:18 GMT References: <1991Jun14.122200.3710@socrates.umd.edu> Organization: McGill Research Centre for Intelligent Machines Lines: 20 In article <1991Jun14.122200.3710@socrates.umd.edu>, cm315a@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@larry.mcrcim.mcgill.edu