-1
If I have a function called calculator() in C. And I want to call this function, obviously I would call it by name, ie by her signature. But if I don’t know the signature of this function, and its signature is found in a char variable, how could I call this function? ie, take the name of the function stored in the variable of char type, and call the function.
Any suggestions?
Thanks
What is the problem what do you want to solve? More importantly, what is the architecture (processor, operating system, compiler) on which you are working?
– user25930
The problem is this described above, is a program in C language, I need to call a function x, but do not know her name, ie the signature. I will receive the name of this function in a variable y which is a string containing the name of the function, as I could call the function x with this variable y informing me the name of the function?
– Vynstus
That’s the solution that you thought for your problem. Rubbing two sticks to make fire is the solution pro problem to make foods more nutritious and tasty; another solution is a microwave oven, which in many circumstances is a more practical and efficient solution. After you can call the function (and catch the result of it), you will use this to do what? If you explain the problem that you want to solve, maybe I can give you a solution that works within the resources and limitations of C.
– user25930
I don’t expect a function result, that doesn’t matter, the only problem is calling the function. It can be a function of type INT that returns 0 only.
– Vynstus