Berkeley CSUA MOTD:Entry 27083
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/16 [General] UID:1000 Activity:popular
4/16    

2003/1/13-14 [Uncategorized] UID:27083 Activity:moderate
1/13    In C, if I have two variables "big_struct_t a, b;", is there any reason
        why I should use "memcpy(&b, &a, sizeof a);" instead of simply
        "b = a;"?  Thanks.  -- yuen
        \_ IMO, memcpy is a clearer expression of the effect of the operation.