what is difference between a)strcpy and memcpy b) memcpy and memmov?
shanki himanshu 27 Light Poster
Recommended Answers
Jump to Poststr1="strings are good");
memmove(str1+8,str1+11,4);
returns------ strings are are good
memcpy(str+8,str1+11,4)
returns------ strings are read
Jump to Posti understand my memmove output but why it is same as memcpy?
Both functions produce the same results. The only real difference is whether the destination and source buffers overlap. If they don't, then use memcpy(), otherwise if they do then use memmove().
All 10 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
shanki himanshu 27 Light Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
shanki himanshu 27 Light Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
shanki himanshu 27 Light Poster
rithish 13 Junior Poster in Training
rithish 13 Junior Poster in Training
shanki himanshu 27 Light Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.