michael coury

How to pass variables with a table of pointers to functions

Discussion created by michael coury on Aug 22, 2006
Latest reply on Aug 23, 2006 by CrasyCat
I have the following table of pointers to functions

int (* HeaderFunctions[])()= {
processHeaderGPAAM,
processHeaderGPALM,
processHeaderGPAPA,
.....
}


and then the following code to call the function

iError = HeaderFunctions[i]();//Jump to Parse Function

I took this from a book that used it as an example but they did not need to pass a variable .. and I am trying to avoid using a global (no particular reason) do i put the variables I would pass in the () that are currently blank?

Thanks

Outcomes