functions returning pointers to functions

Steve Summit stevesu at azure.UUCP
Thu Dec 15 04:48:10 AEST 1983


Thanks to those who responded.  I now know that the correct
declaration is

		int (*getroutine(name,table))()

and not the

		int (*getroutine))((name,table)

that I had been trying to use.  The astonishing thing is that the
pdp11 compilers I have used (2.8bsd, V7, and sysIII based) accept
either declaration and generate identical (working) code.

                                         Steve Summit
                                         tektronix!tekmdp!stevesu



More information about the Comp.unix mailing list