Is it possible to call a C function, given its name as a string?

Posted by benjamin button on Stack Overflow See other posts from Stack Overflow or by benjamin button
Published on 2010-02-02T14:16:40Z Indexed on 2010/04/13 21:33 UTC
Read the original article Hit count: 191

Filed under:
|
|

I saw this question in one of the C puzzles!! Is this really possible?

How can I call a function, given its name as a string? is it possible to use string that is read with scanf be used directly to call a function?

i already have thought of if(strcmp(str,"string"))then call the function.

but is there any other approach?

© Stack Overflow or respective owner

Related posts about c

    Related posts about functions