Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

memcpy(2)

memcmp(2)



  memmove(3)                          CLIX                          memmove(3)



  NAME

    memmove - Moves a block of memory of a specified size

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

    #include <sys/types.h>

    #include <memory.h>

    void(

      *mp );

    mp = memmove(
      void *s1 ,
      const void *s2 ,
      size_t n );

  PARAMETERS

    s1   Pointer to destination, which must be a valid region of at least size
         n.

    s2   Pointer to source region.

    n    Size of area to be moved.

  DESCRIPTION

    The memmove() function copies a block of memory of size n from the
    location specified by s2 to the location pointed to by s1.  The function
    checks and properly adjusts for overlap between the specified regions.

  RETURN VALUES

    The memmove() function returns the value of s1.

  ERRORS

    The memmove() function may generate a SIGSEGV or SIGBUS if an illegal
    memory location is referenced, but has no inherent failure conditions.

  RELATED INFORMATION

    Functions: memcpy(2), memcmp(2)




  2/94 - Intergraph Corporation                                              1




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026