[Previous] [Contents] [Next]

wmemmove()

Copy wide characters from one buffer to another

Synopsis:

#include <wchar.h>

wchar_t * wmemmove( wchar_t * ws1,
                    const wchar_t * ws2,
                    size_t n );

Library:

libc

Description:

The memmove() function copies n bytes from the buffer pointed to by ws2 to the buffer pointed to by ws1. This function copies overlapping regions safely.

The wmemmove() function is locale-independent and treats all wchar_t values identically, even if they're null or invalid characters.


Note: Use the wmemcpy() function for greater speed when copying buffers that don't overlap.

Returns:

A pointer to the destination buffer ws1.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

"Memory manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]