Path: utzoo!utgpu!jarvis.csri.toronto.edu!me!radio.astro!helios!dooley From: dooley@helios.toronto.edu (Kevin Dooley) Newsgroups: comp.lang.c Subject: array of pointers to functions Message-ID: <822@helios.toronto.edu> Date: 12 Jun 89 16:40:18 GMT Reply-To: dooley@helios.physics.utoronto.ca (Kevin Dooley) Distribution: na Organization: University of Toronto Physics/Astronomy/CITA Computing Consortium Lines: 16 I had a clever idea last night for a completely general routine to numerically solve a system of N coupled first order differential equations simultaneously using a Runge-Kutta algorithm. The only way I can think of to conveniently pass an unspecified number of pointers to functions is to construct an array of pointers to the individual functions. Imagine my alarm at discovering that this is not legal. Why not? Can anybody help me out with this little puzzle? Many thanks, Kevin Dooley -- Kevin Dooley UUCP - {uunet,pyramid}!utai!helios.physics!dooley Physics Dept. BITNET - dooley@utorphys U. of Toronto INTERNET - dooley@helios.physics.utoronto.ca