Top "Memcpy" questions

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

error: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]

I get this error. error: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default] This is the code: …

c memcpy
How to increase performance of memcpy

Summary: memcpy seems unable to transfer over 2GB/sec on my system in a real or test application. What can …

c visual-studio memcpy cvi memory-bandwidth
Difference between strncpy and memcpy?

How can i access s[7] in s? I didn't observe any difference between strncpy and memcpy. If I want to …

c memcpy strncpy
Very fast memcpy for image processing?

I am doing image processing in C that requires copying large chunks of data around memory - the source and …

c assembly optimization x86 memcpy
What is the difference between memset and memcpy in C

I've read the function headers, but I'm still not sure what exactly the difference is in terms of use cases.

c memcpy memset
Copying structure in C with assignment instead of memcpy()

Up until recently, I have only seen copying of structure fields done with memcpy(). In classes and online instructions, copying …

c pointers struct memcpy
Using memcpy to copy a range of elements from an array

Say we have two arrays: double *matrix=new double[100]; double *array=new double[10]; And we want to copy 10 elements from …

c++ memcpy
Can I call memcpy() and memmove() with "number of bytes" set to zero?

Do I need to treat cases when I actully have nothing to move/copy with memmove()/memcpy() as edge cases …

c++ c pointers memcpy memmove
C strcpy() - evil?

Some people seem to think that C's strcpy() function is bad or evil. While I admit that it's usually better …

c memcpy strcpy
How to prevent memcpy buffer overflow?

There are some binary buffer with fixed size in a program that are used to store data. And memcpy is …

c memcpy buffer-overflow fortify-source