From: John Brown <johnbrown105@ho...> - 2003-06-09 20:13:56
I suppose that this could happen if your function has the same name as a
function that is declared in some header file that you include, and you did
not provide a prototype for your function.
/* foo.h */
/* foo declared here, and defined in some library or source file not written
by you */
int foo(int a, char b, float c);
/* foo.c */
int main(int argc, char *argv)
foo(); /* should complain about too few arguments here */
/* your foo defined here */
But when I tested it, I saw:
foo.c: In function `main':
foo.c:4: too few arguments to function `foo'
foo.c: In function `foo':
foo.c:9: number of arguments doesn't match prototype
foo.h:1: prototype declaration
That is, the real problem (the call not matching the prototype) was also
Anyway, I can't think of anything else.
The new MSN 8: smart spam protection and 2 months FREE*