How to 'convert' char to function in C
Posted
by Tim van Elsloo
on Stack Overflow
See other posts from Stack Overflow
or by Tim van Elsloo
Published on 2010-04-05T11:12:58Z
Indexed on
2010/04/05
11:23 UTC
Read the original article
Hit count: 325
Filed under:
c
Hi,
void someFunction() {
char *function = "anotherFunction";
const char *params[] = {"aVal","bVal","cVal"};
// How can I call the *function with the *params?
}
void anotherFunction(char *aKey, char *bKey, char *cKey) {
// Do something with *aKey, *bKey and *cKey;
}
Does someone know how to call the *function with the *params?
Thanks in advance,
Tim
© Stack Overflow or respective owner