<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Looks good to me. I don't know exactly why assingment is this better<br>


than memcpy :).<br></blockquote><br>
</div>I'm guessing it's better because the code becomes clearer and easier to understand. It also eliminates the possibility of human error when specifying the number of bytes to memcpy.<br><br></div><div class="gmail_extra">

The actual assembly code generated is dependent on the compiler. Given a specific definition of the structure, the compiler may choose to handle the assignment the same way it handles a memcpy.<br><br>Dragos<br><br></div>

</div>