memcpy poblem

Is there any diffent between memcpy(dest,src,srcsize) and memcpy(dest,getdata(),datasize)?
Any help will be appreciated.
That depends on if there is a difference between src and getdata(), and srcsize and datasize.
There is no difference bettween them.
double *src=getdata();
srcsize=datasize;
But the dest content is different. I'm confused.
I'm going to guess that `getdata()' is returning the memory address of a local variable, so you are invoking undefined behaviour with memcpy().
Topic archived. No new replies allowed.