A pointer to a wide-character string, where each element is of type `wchar_t`. Used for representing text in wide-character encoding to support extended character sets.
A pointer to a wide-character string, where each element is of type `wchar_t`. Used for representing text in wide-character encoding to support extended character sets.
1st Parameter
Pointer to the destination wide-character array where the content is to be copied.
2nd Parameter Type : const wchar_t *
A pointer to a read-only wide-character string, where each character is of type `wchar_t`. Used for representing text in wide-character encoding to support extended character sets, such as Unicode. The string is null-terminated, with the terminator being a `wchar_t` with value 0.
2nd Parameter
Pointer to the source wide-character array to copy from.
3rd Parameter Type : size_t
Platform-specific unsigned type for array indices and memory sizes.
3rd Parameter
The number of wide characters to copy from `src` to `dest`.
Read more about parameters of wmemcpy in parameters section
The wmemcpyfunction in C language Copies 'n' wide characters from one wide character array to another.
wmemcpy copies n wide characters from the object pointed to by src to the object pointed to by dest. If the objects overlap, the behavior is undefined. This function operates on raw memory and doesn't stop at null terminators.
The wmemcpyfunction takes 3
parameters:
•
wchar_t * `dest`: Pointer to the destination wide-character array where the content is to be copied.
•
const wchar_t * `src`: Pointer to the source wide-character array to copy from.
•
size_t `n`: The number of wide characters to copy from `src` to `dest`.
Copies `n` wide characters from the wide-character array `src` to `dest`. The arrays must not overlap. Returns a pointer to `dest`.
The wmemcpy function return value :
Returns the value of dest
Output
This example demonstrates the basic usage of wmemcpy to copy a wide character string.