wmemmove(3)
β¨ wmemmove(3) β the wide-char copy girlies π
okay bestie, so this is the manual page for wmemmove out of the Library Functions Manual β it lives in the Standard C library (libc, -lc) and honestly? she's the wide-character glow-up of memmove(3) and she eats. π¦
πΈ NAME πΈ
wmemmove β copy an array of wide-characters π
π LIBRARY π
Standard C library (libc, -lc)
β¨ SYNOPSIS β¨
#include <wchar.h>
wchar_t *wmemmove(size_t n;
wchar_t dest[n], const wchar_t src[n], size_t n);
like. yes. that's the signature. we don't ask questions, we just include the header. π«Ά
π DESCRIPTION π
So wmemmove() is literally the wide-character equivalent of what memmove(3) does β same energy, bigger characters. She copies n wide characters from the array starting at src to the array starting at dest. π
And the iconic part? The arrays may overlap. π That's the whole reason she exists instead of just yelling at you to use wmemcpy(3). She handles the messy overlapping situations with grace, because she's a main character.
π¨ bestie listen. The programmer must ensure that there is room for at least n wide characters at dest. That's on YOU. She will not check. She will simply write there. no cap. π
π RETURN VALUE π
wmemmove() returns dest. that's it. that's the return. she gives you back the pointer you gave her. slay. β¨
π ATTRIBUTES π
For the whole explanation of the terms used in this section, go peek at attributes(7).
- Interface:
wmemmove() - Attribute: Thread safety
- Value:
MT-Safeπ₯
so yes, she's thread safe, she can hang in multiple threads at once, she's booked and busy.
π STANDARDS π
C11, POSIX.1-2008. periodt. π
π§ HISTORY π§
POSIX.1-2001, C99. she's been around, she's a legacy icon, she's been doing this since before some of us were born. π
π SEE ALSO π
that's the whole page bestie! now go forth and move your wide characters safely, overlapping or not. πβ¨π¦
π«Ά this one's from Linux man-pages 6.20, dated 2026-02-08, and it's the wmemmove(3) page. love that for us. bye! π
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms