Thanks,
Bart
void test();
int main(void)
{
test();
}
test()
{
}
> Please tell me what's wrong with the following code. Keeps saying missing
> prototype for test().
> void test();
>
> int main(void)
> {
> test();
> }
>
> test() /* yes this was void test() once */
> {
> }
Seems like it doesn't like functions not having empty params. Using (void)
fixes it.
BTW that test() definition /was/ void test() at one point, but it still had
the problem. I tried lots of combinations!
Bart
Note:
int foo(); // Function with an INDETERMINATE number of args
int foo(void); // Function with NO args.
You see?
There IS a big difference.
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32