Call of non-function (?)

Wayne A. Christopher faustus at cad.UUCP
Sat Dec 21 07:10:22 AEST 1985


> While trying to compile some source code that I got over the net, my compiler
> tripped over this line:
> 
> cmd->c_func(args, arg1, arg2, got1, got2);

You want "(*cmd->c_func) (args ...)". You can call a function, but you can't
call a pointer to a function... Most compilers will figure out what you
mean and do it anyway, but...

	Wayne



More information about the Comp.sources.bugs mailing list