I want to write a function and be able to call it during execution (say during a while(1) loop). Is this possible without having to parse an input string to extract the function and parameters I need or is that the only way?
Thanks!.
I want to write a function and be able to call it during execution (say during a while(1) loop). Is this possible without having to parse an input string to extract the function and parameters I need or is that the only way?
Thanks!.
No, C does not have it's own built-in 'eval' function, where you can type in arbitrary bits of code which is then compiled and run.
I suppose you could integrate this into your program, if you want some scripting ability.
Lua: about
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.