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

problem with function pointers

Hi,
I'm trying to succeed in a function pointer.
what is wrong with the compiler says:
syntax error: token -> 'code' ; column 18

#include <string.h>
char str1[10];
xdata unsigned int i;
xdata unsigned int ret;
code *call;
typedef void (code *callback); (void); // syntax error: token -> 'code'
extern callback xdata statefunc;
void main(void)
{ strcpy(str1, "testing");
}

0