Path: chuka.playstation.co.uk!news From: "Nick Slaven" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Question for the C experts Date: Thu, 3 Sep 1998 20:20:47 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 21 Message-ID: <6smqal$l6j17@chuka.playstation.co.uk> References: <35EEB905.940C6E98@ndirect.co.uk> <35EECDB7.334B8EB5@scee.sony.co.uk> NNTP-Posting-Host: mfs2-dnbqy-245.gbr.compuserve.net X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 James Russell wrote in message <35EECDB7.334B8EB5@scee.sony.co.uk>... >Always a tricky one. Assuming your functions are all "void functionName(void)" then: > >void (*funcIndex[])(void) = { function0, function1, function2 }; > >void (*func)(void); >func = funcIndex[myIndex]; >func(); or alternatively (funcIndex[myIndex])(); Nick S