Browse - programming tips - win32 fast way to copy a dwordDate: 2010mar8 Q. What's a quick way to move a doubleword (4 bytes)? (eg an IPv4 address) A. You could do this: memcpy(&to_buffer, &dwFrom, sizeof(DWORD)); But this is faster: *((DWORD *)&to_buffer) = dwFrom;
Add a commentSign in to add a comment |