WMEMMOVE(3P)
π WMEMMOVE(3P) π
okay bestie, welcome to the POSIX Programmer's Manual β yes, the whole POSIX Programmer's Manual, and this is the WMEMMOVE(3P) page. sit with me, we're gonna vibe through it together π«Ά
πΈ PROLOG πΈ
bestie, real talk first: this manual page is part of the POSIX Programmer's Manual. but likeβ¦ the Linux implementation of this interface may differ, so if you're on Linux you should go check the corresponding Linux manual page for the deets on Linux behavior. or β plot twist β the interface might not even be implemented on Linux at all. so like, vibe check your platform first, ok? π
β¨ NAME β¨
wmemmove β copy wide characters in memory with overlapping areas
yes she copies wide characters, and yes she handles overlapping areas. that's her whole thing. main character energy fr.
π SYNOPSIS π
#include <wchar.h>
wchar_t *wmemmove(wchar_t *ws1, const wchar_t *ws2, size_t n);
look at her. three little params. iconic.
π¦ DESCRIPTION π¦
so the functionality described on this reference page is aligned with the ISO C standard. if there's ever any conflict between the requirements described here and the ISO C standard, that conflict is unintentional β no drama intended, it's just how it is. and this volume of POSIX.1β2017 defers to the ISO C standard, periodt.
okay so what does wmemmove() actually do? she shall copy n wide characters from the object pointed to by ws2 into the object pointed to by ws1.
and here's the cute part β the copying shall take place as if the n wide characters from the object pointed to by ws2 are first copied into a temporary array of n wide characters that does not overlap the objects pointed to by ws1 or ws2, and then the n wide characters from that temporary array are copied into the object pointed to by ws1. so likeβ¦ she takes the scenic route specifically so overlap can't hurt her. it's giving careful. it's giving considerate. π§
this function shall not be affected by locale, and all wchar_t values shall be treated identically. the null wide character and wchar_t values that don't correspond to valid characters shall not be treated specially. no favorites here. everyone's equal. π
and if n is zero? the application shall ensure that ws1 and ws2 are valid pointers (yes even then, don't get cute with it), and the function shall copy zero wide characters. zero. nothing. she did nothing and she ate. π₯
π RETURN VALUE π
wmemmove() shall return the value of ws1. that's it. that's the return. she gives you back your destination pointer like a lil gift π
π ERRORS π
No errors are defined
and then β important lil heads up β the following sections are informative: β¨
π EXAMPLES π
None.
(it's giving "we trust you" ngl)
πΈ APPLICATION USAGE πΈ
None.
π RATIONALE π
None.
π¦ FUTURE DIRECTIONS π¦
None.
β SEE ALSO β
wmemchr()wmemcmp()wmemcpy()wmemset()
and also the Base Definitions volume of POSIX.1β2017, <wchar.h> β go read her too, she's part of the lore π
π COPYRIGHT π
okay legal bestie moment, gotta be precise here:
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.
In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. (she's the final boss, no appeals π)
The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
no cap, that's the whole page. every flag, every value, every pointer, all of it. you're so welcome bestie π«Ά
and that's a wrap, babes β this lil masterpiece came to you courtesy of IEEE/The Open Group, 2017, page WMEMMOVE(3P). slay, bye πβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- 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-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms