HELPLIB.HLB  —  CRTL  wmemmove
    Copies a specified number of wide characters from one wide-
    character array to another.

    Format

      #include  <wchar.h>

      wchar_t wmemmove  (wchar_t *dest, const wchar_t *source, size_t n);

1  –  Function Variants

    The wmemmove function has variants named _wmemmove32 and
    _wmemmove64 for use with 32-bit and 64-bit pointer sizes,
    respectively.

2  –  Arguments

 dest

    A pointer to the destination array.

 source

    A pointer to the source array.

 n

    The number of wide characters to be moved.

3  –  Description

    The wmemmove function copies n wide characters from the location
    pointed to by source to the location pointed to by dest.

    The wmemmove and wmemcpy routines perform the same function,
    except that wmemmove ensures that the original contents of the
    source array are copied to the destination array even if the two
    arrays overlap. Where such overlap is possible, programs that
    require portability should use wmemmove, not wmemcopy.

4  –  Return Value

    x                  The value of dest.
Close Help