This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Array of function pointers

I have a constant array of function pointers in code space and I an trying to declare a pointer variable to point to this array and then assign the array address to the pointer variable.

The C51 compiler gives an error 213 for the assignment.

Is there anything obviously wrong with what I am trying to do.

extern const void (code * code ArrayOfFunc[])();

void (code * code * xdata ptrArrayOfFunc[])();

main() {
ptrArrayOfFunc = ArrayOfFunc;
}

Thanks

0