wcslcpy(3bsd)
π wcslcpy β the manual page, but make it make sense
okay bestie, so like... it's wcslcpy(3bsd), it lives in the LOCAL section, and it's giving "wide character string manipulation" energy. No cap, this one's short and sweet, so let's go π«Ά
β¨ NAME β¨
wcslcat, wcslcpy β wide character string manipulation operations π
π LIBRARY π
Utility functions from BSD systems, and she's chilling in libbsd, so you link her with -lbsd πΈ
π SYNOPSIS π
#include <wchar.h>
(also, bestie, peep libbsd(7) for how the include usage actually works, iykyk π)
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 π«
So these two functions implement string manipulation operations, but over wide character strings instead of your regular lil byte strings β¨
For a detailed description? Girl, go read the docs for the respective single-byte counterpart, like strlcpy(3bsd). She's the blueprint, wcslcpy is just her wide-character era π
π SEE ALSO π
periodt π
π STANDARDS π
wcslcat()</purl> and wcslcpy() β which are BSD extensions π (iconic behaviour, honestly)
π HISTORY π
The wcslcpy() and wcslcat() functions first appeared in OpenBSD 3.8, NetBSD 1.6, FreeBSD 5.0 and DragonFly 2.1 π
fr fr, that's the whole page. short king behaviour, but every flag is accounted for π
and that's a wrap, bestie π this little cutie is brought to you by Debian, dated March 4, 2009 β yes she's vintage, she's still slaying, and she's from the wcslcpy(3bsd) LOCAL section. mwah πβ¨π¦
π¦ where this page comes from
- alpine 3.22: libbsd-doc 0.12.2-r0 Β· BSD-3-Clause
- alpine 3.23: libbsd-doc 0.12.2-r0 Β· BSD-3-Clause
- alpine 3.24: libbsd-doc 0.12.2-r0 Β· BSD-3-Clause
- arch rolling: libbsd 0.12.2-2 Β· custom
- debian trixie: libbsd-dev 0.12.2-2
- epel 10: libbsd-devel 0.12.2-4.el10_0 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- epel 9: libbsd-devel 0.12.2-1.el9 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 43: libbsd-devel 0.12.2-6.fc43 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 43: libbsd-devel 0.12.2-6.fc43 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 44: libbsd-devel 0.12.2-7.fc44 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 44: libbsd-devel 0.12.2-7.fc44 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- nixos 26.05: libbsd 0.12.2
- ubuntu noble: libbsd-dev 0.12.1-1build1
- ubuntu noble: libbsd-dev 0.12.1-1build1.1
- ubuntu questing: libbsd-dev 0.12.2-2build1
- ubuntu resolute: libbsd-dev 0.12.2-2build2
- ubuntu stonking: libbsd-dev 0.12.2-3
- Copyright (c) 1990, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms