On Mon, Feb 23, 2009 at 9:53 PM, John Matthews <[email protected]> wrote: > --- In [email protected], "peternilsson42" <peternilsso...@...> > wrote: >> >> "John Matthews" <jm5678@> wrote: >> > In C99, if you have the following function prototypes: >> > >> > void funcX(); >> >> This is _not_ a prototype in C99 (or C90.) > > Peter- I was going by the C99 standard at > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf > which in 6.7.5.3 16 states: > > EXAMPLE 1 The declaration > > int f(void), *fip(), (*pfi)(); > > declares a function f with no parameters returning an int, a function > fip with no parameter specification returning a pointer to an int, and > a pointer pfi to a function with no parameter specification returning > an int. > > What have I misunderstood (wrt. fip and pfi)?
The difference between "with no parameters" and "with no parameter specification" -- PJH http://shabbleland.myminicity.com/tra http://www.chavgangs.com/register.php?referer=9375
