on the fringe of C syntax/semantics
Chris Torek
chris at mimsy.UUCP
Thu Oct 5 16:14:42 AEST 1989
In article <19971 at mimsy.UUCP> I wrote:
[most lines deleted]
> typedef int (*fn)(void);
> fn x;
[stuff missing here]
> x = va_arg(ap, fn);
[and here]
> ((int (*)(sometype))fn)(firstarg);
[and here]
> fn();
Oops, the last two should be calls through `x', not `fn'.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at cs.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list