memcpy != bcopy (Was Re: bcopy() bzero())

Henry Spencer henry at utzoo.uucp
Sun Feb 25 10:38:33 AEST 1990


In article <1990Feb23.225358.375 at sj.ate.slb.com> konath at sj.ate.slb.com (Kannan Konath) writes:
>In the VAX-VMS-C manual,  it states that memmove() has exactly the same
>functionality as  memcpy().  Does that mean memmove() does not handle
>overlapped moves or does that mean memcpy() handles overlapped moves.

ANSI C memcpy must not be handed overlapping arguments, whereas ANSI C
memmove is required to handle them correctly.  How this corresponds to
VAX VMS C is another question entirely.
-- 
"The N in NFS stands for Not, |     Henry Spencer at U of Toronto Zoology
or Need, or perhaps Nightmare"| uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list