rjsaul0
IS-IT--Management
- Mar 2, 2006
- 6
Hi,
How would define an array of function pointers where the return type or arguments are different? For example,
int (*fn)()
void (*fn)(int)
char (*fn)(int, char)
This would be for building a dictionary of function calls.
Older C languages didn't strong typing so you could use int (*fn)() for any function call.
How would define an array of function pointers where the return type or arguments are different? For example,
int (*fn)()
void (*fn)(int)
char (*fn)(int, char)
This would be for building a dictionary of function calls.
Older C languages didn't strong typing so you could use int (*fn)() for any function call.