VMS Help  —  CRTL  mempcpy
    Copies a specified number of bytes from one object to another and
    returns a pointer to the byte following the last written byte.

    Format

      #include <string.h>

      void *mempcpy (void *dest, const void *source, size_t size);

1  –  Function Variants

    The mempcpy function has variants named _mempcpy32 and _mempcpy64
    for use with 32-bit and 64-bit pointer sizes, respectively.

2  –  Arguments

 dest

    A pointer to the destination object

 source

    A pointer ot the source object

 size

    The length of the object to be copied in bytes.

3  –  Description

    The mempcpy function, similar to the memcpy function, copies size
    bytes from the object pointed to by source to the object pointed to
    by dest; it does not check for the overflow of the receiving memory
    area (dest). Instead of returning the value of dest, mempcpy
    returns a pointer to the byte following the last written byte.

4  –  Return Value

    x                  A pointer to the byte following the last
                       writen byte.
Close Help