Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: An array of function pointers. Message-ID: <8509@smoke.ARPA> Date: 16 Sep 88 14:50:02 GMT References: <414@ucrmath.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <414@ucrmath.UUCP> jantypas@ucrmath.UUCP (John Antypas) writes: >try to copy function addresses, the compiler complains. How do I get the >address of a funciton and put it into an array for calling later? Just use the name of the (previously declared) function; that IS a pointer to the function. Note that all the function pointers in your array should have the same type, which means that all the functions themselves should have the same type. (Also of course the array needs to be declared as an array of pointers to functions having that type.)