|
-
August 19th, 2011, 08:14 AM
#6
Re: Copy buffer to struct
 Originally Posted by GCDEF
Nothing in your first example will copy data to your struct.
You are correct - I missed entering this in the above example: memcpy(&hdr, buf, sizeof(header));
Where buf is the data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|