---
name: "wmempcpy"
section: "3"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/wmempcpy"
---

# wmempcpy(3)

wide-character memory return-offset-pointer copy

## NAME

wmempcpy  - wide-character memory return-offset-pointer copy

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#define _GNU_SOURCE         /* See feature_test_macros(7) */
#include <wchar.h>
```

**wchar\_t \*wmempcpy(**size\_t n;               **wchar\_t** *dest***\[restrict** *n***\], const wchar\_t** *src***\[restrict** *n***\],**               **size\_t** *n***);**

## DESCRIPTION

The **wmempcpy**() is the wide-character equivalent of [**mempcpy**(3)](/mempcpy/3.md).

It is equivalent to

```
wmemcpy(dest, src, n) + n
```

## RETURN VALUE

See [**mempcpy**(3)](/mempcpy/3.md).

## ATTRIBUTES

For an explanation of the terms used in this section, see [**attributes**(7)](/attributes/7.md).

| | | |
| --- | --- | --- |
| **Interface** | **Attribute** | **Value** |
| **wmempcpy**() | Thread safety | MT-Safe |

## STANDARDS

GNU.

## HISTORY

glibc 2.1.

## SEE ALSO

[**mempcpy**(3)](/mempcpy/3.md)
