Cloning the function in C langauge
I am trying to write a code that copy the function code at run time and execute it. 

Thomas :- You have given very good explanation about this in your post ("Copy a function in memory and execute it"). Can you please give me a short example that does the same thing.

I tried to copy the function but when it called, giving the segmentation fault error message.

Thanks,
Gaurav
Cloning the function in C langauge
===

I am trying to write a code that copy the function code at run time and execute it. 

Thomas :- You have given very good explanation about this in your post ("Copy a function in memory and execute it"). Can you please give me a short example that does the same thing.

I tried to copy the function but when it called, giving the segmentation fault error message.

Thanks,
Gaurav