Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site cad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!cad!faustus From: faustus@cad.UUCP (Wayne A. Christopher) Newsgroups: net.sources.bugs Subject: Re: Call of non-function (?) Message-ID: <31@cad.UUCP> Date: Fri, 20-Dec-85 16:10:22 EST Article-I.D.: cad.31 Posted: Fri Dec 20 16:10:22 1985 Date-Received: Sun, 22-Dec-85 00:13:54 EST References: <1155@bbnccv.UUCP> Distribution: net Organization: U. C. Berkeley CAD Group Lines: 10 > 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