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