How to execute a function with its name as a string in c?
Answers
Answered by
0
There is no way to directly call a function by string like you want in the standard C library. If it were C++, you could create a std::map of string to function pointer, but not in C. You'll probably have to resort to a series of strcmps if C++ is not an option.
If you have Some more questions, then contact me at:
Email: [email protected]
Youtube: shorturl.at/mnB57
Similar questions