Top "Memcpy" questions

memcpy() is a C standard library function used for copying a block of memory bytes from one place to another.

memcpy() vs memmove()

I am trying to understand the difference between memcpy() and memmove(), and I have read the text that memcpy() doesn't …

c memcpy memmove
strcpy vs. memcpy

What is the difference between memcpy() and strcpy()? I tried to find it with the help of a program but …

c memcpy strcpy
faster alternative to memcpy?

I have a function that is doing memcpy, but it's taking up an enormous amount of cycles. Is there a …

c performance memcpy
What is the difference between memmove and memcpy?

What is the difference between memmove and memcpy? Which one do you usually use and how?

c memcpy memmove
What header should I include for memcpy and realloc?

I am porting a project to the iPhone and it uses realloc and memcpy which are not found. What is …

c++ objective-c header memcpy realloc
Struct assignment or memcpy?

If I want to replicate a structure in another one (in C), what are the pro&con's of : struct1 = …

c struct variable-assignment memcpy
memcpy(), what should the value of the size parameter be?

I want to copy an int array to another int array. They use the same define for length so they'll …

c arrays sizeof memcpy
memcpy with startIndex?

I wish to copy content of specific length from one buffer to another from a specific starting point. I checked …

c++ memcpy
Using memcpy in C++

I am little confused on the parameters for the memcpy function. If I have int* arr = new int[5]; int* newarr = …

c++ arrays memcpy
How to split array into two arrays in C

Say i have an array in C int array[6] = {1,2,3,4,5,6} how could I split this into {1,2,3} and {4,5,6} Would this be possible …

c arrays split memcpy