I know when to use it like assigning values between arrays, but how does it work on the inside. If you could show in some more code that would be awesome thanks!
I know when to use it like assigning values between arrays, but how does it work on the inside. If you could show in some more code that would be awesome thanks!
Google: memcpy code
[My] First Result: Koders Code Search: memcpy.c - C - GPL
Thanks Matticus that helped a lot. I was googling how memcpy() works in C and I got no results
It's hard to say how it works on the inside. C libraries can be written in C. There are many references showing standard C libraries written in C but they are for illustrative purposes to aid in understanding, or to provide a portable way to port libraries to different platforms. They do not imply that that's the way things are in practice.
Most libraries, when the target machine is known, will use highly optimized assembly routines. I wouldn't be surprised if some object code takes advantage of hand-tuned SSE2 / SSE3 architectures which may not be accessible by current optimizing compilers.