arrays of pointers to functions

Dave Decot decot at hpisod2.HP.COM
Tue May 8 09:43:33 AEST 1990


> I have the following declared:
> 
> 		int (*func[])();
> 
> How do I go about initializing func so that it contains pointers to

    extern int func0(), func1(), func2(), func3(), func4();

    int (*func[])() = { func0, func1, func2, func3, func4, 0 };

Dave



More information about the Comp.lang.c mailing list