Hello everyone!
I am writing a C program that could be simplified if I manage to do something like this:
int (*func)(int);
char* str= "adder";
func = str;
func(2);
I create a function pointer, a char*, and I try to assign the name of the function to the pointer through that char*. In this example, the adder(int) function exists.
Is this actually possible?
I know the standard way of doing it would just be func = adder;, but that will not solve it.
Thanks a lot!
Antonio