Mail Archives: djgpp/1997/08/24/20:02:58
Hans Steffani wrote:
> structure[0].funk(); /* funktion1 called via pointer */
> /* ANSI-C */
>
> (*structure[1].funk)(); /* funktion2 called via pointer */
> /* ANSI-C und K&R-C */
Both of these calls are completely valid ANSI C. In fact, dereferencing
a function pointer before calling it is completely redudnant now. YOu
can even do it as many times as you like:
(************structure[1].funk)();
Bad style, but completely legal.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://37.20.07n/121.53.38w
\
"War is like love; / it always finds a way."
/ Bertolt Brecht
- Raw text -