ULTRIX-32 VAX C compiler bug
Robert N. Berlinger
naftoli at aecom.yu.edu
Thu Mar 23 04:37:49 AEST 1989
Reply-to: naftoli at aecom.yu.edu (Robert N. Berlinger)
In article <85725 at felix.UUCP>, kjones at talos.UUCP (Kyle Jones) writes:
> Anyone know why vcc(1) gripes about pointers to functions being used
> as functions. Example:
> main()
> {
> int atoi();
> int (*ascii_to_integer)() = atoi;
>
> ascii_to_integer("3");
> }
The function call should be
(*ascii_to_integer)("3");
K&R has an example, check out page 116, 1st edition,
or page 120, 2nd edition.
Robert
--
Robert N. Berlinger |Domain: naftoli at aecom.yu.edu
Supervisor of Systems Support |UUCP: {uunet,philabs,phri}!aecom!naftoli
Scientific Computing Center |CompuServe: 73047,741 GEnie: R.Berlinger
Albert Einstein College of Medicine |Pan: berlinger
More information about the Comp.unix.ultrix
mailing list