Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: Invoking pointers to functions (C sytle)
Message-ID: <1990Dec1.232604.13487@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <6379@harrier.ukc.ac.uk>
Date: Sat, 1 Dec 90 23:26:04 GMT

In article <6379@harrier.ukc.ac.uk> dac@ukc.ac.uk (David Clear) writes:
>The (*p)(args) invocation is the K&R standard. p(args) also works on at
>least 4 different Unix compilers.
>
>Q: Is p(args) legal, portable C?

Once upon a time, it wasn't legal.  Now it is.  However, there are still
plenty of old compilers that may balk at it.  I'd say the code is clearer
and more portable if you make the `*' explicit.
-- 
"The average pointer, statistically,    |Henry Spencer at U of Toronto Zoology
points somewhere in X." -Hugh Redelmeier| henry@zoo.toronto.edu   utzoo!henry
