Connecting Tech Pros Worldwide Forums | Help | Site Map

difference between memcpy and strcpy

Newbie
 
Join Date: Sep 2007
Posts: 1
#1: Sep 3 '07
i want to know the difference between memcpy and strcpy please provide examples

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Sep 3 '07

re: difference between memcpy and strcpy


Quote:

Originally Posted by sreevidya1983

i want to know the difference between memcpy and strcpy please provide examples

strcpy() determines the length of the block to be copied itself. memcpy() relies
on the caller.

kind regards,

Jos
Reply