Now can I copy 4 bytes (known start position, NOT 0) in an array (char*data
) to a DWORD
?
There are two parts to this: first, getting the 4 bytes from the array at the specified position (4 elements, each element is a char which is 1 byte in C), and then moving them to a DWORD.
I'm not sure how to do either.
Thanks!
You can use
memcpy
(it requiresstring.h
header):