wcslcpy(3bsd) 3bsd wcslcpy(3bsd)

# [NAME](#NAME)

`wcslcat`, `wcslcpy`, — wide character string manipulation operations

# [LIBRARY](#LIBRARY)

library “libbsd”

# [SYNOPSIS](#SYNOPSIS)

`#include <wchar.h>` (See [libbsd(7)](/man/os/libbsd/libbsd.7) for include usage.)  
`size_t`  
`wcslcat`(`wchar_t *s1`, `const wchar_t *s2`, `size_t n`);

`size_t`  
`wcslcpy`(`wchar_t *s1`, `const wchar_t *s2`, `size_t n`);

# [DESCRIPTION](#DESCRIPTION)

The functions implement string manipulation operations over wide character strings. For a detailed description, refer to documents for the respective single-byte counterpart, such as [strlcpy(3bsd)](/man/os/libbsd/strlcpy.3bsd).

# [SEE ALSO](#SEE_ALSO)

[strlcat(3bsd)](/man/os/libbsd/strlcat.3bsd), [strlcpy(3bsd)](/man/os/libbsd/strlcpy.3bsd).

# [STANDARDS](#STANDARDS)

`wcslcat`() and `wcslcpy`(), which are BSD extensions.

# [HISTORY](#HISTORY)

The `wcslcpy`() and `wcslcat`() functions first appeared in OpenBSD 3.8, NetBSD 1.6, FreeBSD 5.0 and DragonFly 2.1.

March 4, 2009 Linux 4.19.0-gvisor

---

Document: wcslcpy(3bsd) from libbsd 0.12.2-r8 (Chainguard OS)
Source: https://gitlab.freedesktop.org/libbsd/libbsd
