logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

memmove - copy memory area

Attributes

       For an explanation of the terms used in this section, see attributes(7).
       ┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐
       │ InterfaceAttributeValue   │
       ├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤
       │ memmove()                                                                   │ Thread safety │ MT-Safe │
       └─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘

Description

       The  memmove()  function  copies  n bytes from memory area src to memory area dest.  The memory areas may
       overlap: copying takes place as though the bytes in src are first copied into a temporary array that does
       not overlap src or dest, and the bytes are then copied from the temporary array to dest.

History

       POSIX.1-2001, C89, SVr4, 4.3BSD.

Library

       Standard C library (libc, -lc)

Name

       memmove - copy memory area

Return Value

       The memmove() function returns a pointer to dest.

See Also

bcopy(3), bstring(3), memccpy(3), memcpy(3), strcpy(3), strncpy(3), wmemmove(3)

Linux man-pages 6.9.1                              2024-05-02                                         memmove(3)

Standards

       C11, POSIX.1-2008.

Synopsis

#include<string.h>void*memmove(voiddest[.n],constvoidsrc[.n],size_tn);

See Also