#memcpy not working properly?

8 messages · Page 1 of 1 (latest)

frank crystal
#

It's not throwing an error, but it seem memcpy doesn't work as it should. I want to copy the first half of the 10 element array L into L1 and the second half into L2
It's printing L[] just fine as shown above, but memcpy doesn't seem to work

marsh swiftBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

frank crystal
zinc gazelle
#

the 3rd argument is the number of bytes, not the number of elements

frank crystal
#

damn, thank you!

marsh swiftBOT
#

@frank crystal Has your question been resolved? If so, run !solved :)

frank crystal
#

!solved