Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!tektronix!ogcvax!omsvax!hplabs!sri-unix!romkey@mit-csr From: romkey%mit-csr@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: C syntax Message-ID: <4385@sri-arpa.UUCP> Date: Fri, 26-Aug-83 00:11:34 EDT Article-I.D.: sri-arpa.4385 Posted: Fri Aug 26 00:11:34 1983 Date-Received: Sun, 21-Aug-83 02:30:05 EDT Lines: 23 From: John L. Romkey I believe that the msg about types from Ed Hall had a bug in it. The second example was an array of pointers to functions returning strings, and Ed used char *(p[N])(); as the declaration. But this is actually an array of functions returning strings, which shouldn't mean much to most C compilers. What you really need here is another *, as in: char *(*p[N])(); and when calling one of these functions, you want to say: x = *(*p[n])(); I still remember the awful pain of trying to figure out how to declare a function which returned a pointer to a function which returned an int. - John Romkey romkey@mit-csr