[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#324001: overlapping memcpy()



On 5/21/06, Thomas Dickey <dickey@radix.net> wrote:
On Sun, May 21, 2006 at 05:09:32PM -0400, Albert Cahalan wrote:
>
> End result: it acts like bzero() when src==dst

hmm - someone should fix that broken implementation of memcpy.

It's damn fast. I like fast libraries, don't you?

The ISO standards for both C99 and POSIX/UNIX state: "If copying
takes place between objects that overlap, the behavior is undefined."

There wouldn't be a memmove() function if it weren't needed.



Reply to: