Robert Baron <[email protected]> writes:

> Second question:
>
> Doesn't memcpy allow for overlapping memory, but strcpy does not?  Isn't this
> why memcpy is preferred over strcpy?

According to the man page for memcpy, "The memory areas must not
overlap.  Use memmove(3)  if  the memory areas do overlap."

strcpy will stop copying at the first null byte.


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to