Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ico!ism780c!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Pointers to functions on Xenix Message-ID: <14560@haddock.ima.isc.com> Date: 8 Sep 89 21:37:14 GMT References: <1989Sep8.021802.29203@Octopus.COM> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 11 In article <1989Sep8.021802.29203@Octopus.COM> stever@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@haddock.isc.com), The Walking Lint