title: C memcpy() a function
body: <p>Is there any method to calculate size of a function? I have a pointer to a function and I have to copy entire function using memcpy. I have to malloc some space and know 3rd parameter of memcpy - size. I know that  <code>sizeof(function)</code> doesn't work. Do you have any suggestions?</p>