Pointers to functions on Xenix
Karl Heuer
karl at haddock.ima.isc.com
Sat Sep 9 07:37:14 AEST 1989
In article <1989Sep8.021802.29203 at Octopus.COM> stever at octopus.UUCP (Steve Resnick ) writes:
>When I get to the point where I execute an internal function...
> (Cmds[idx].fptr)(c,v); /* Here is where I call the function */
>This is what the compiler doesn't like.
The ability to invoke a function via a pointer without an explicit dereference
is new to ANSI C, and is not supported by all pre-ANSI compilers. The more
portable syntax is
(*Cmds[idx].fptr)(c,v);
Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
More information about the Comp.lang.c
mailing list