wcslcpy(3bsd)

πŸ“¦
version 0.12.2 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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