(How) can I let a "pointer to a function" variable point to a function that is specified by another variable?
Example:
char rec_value[20];
int (*rcv_mail[2])(char *msg);
extern int ser_rcv_mail(char *msg);
strcpy (rec_value,"ser_rcv_mail"
Is it possible to let rcv_mail[0] point to the function ser_rcv_mail() by using the contents of the rec_value variable, something equal to "rcv_mail[0] = ser_rcv_mail;"?
Example:
char rec_value[20];
int (*rcv_mail[2])(char *msg);
extern int ser_rcv_mail(char *msg);
strcpy (rec_value,"ser_rcv_mail"
Is it possible to let rcv_mail[0] point to the function ser_rcv_mail() by using the contents of the rec_value variable, something equal to "rcv_mail[0] = ser_rcv_mail;"?