1<html lang="en"> 2<head> 3<title>wmemmove - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Wchar-strings.html#Wchar-strings" title="Wchar strings"> 9<link rel="prev" href="wmemcpy.html#wmemcpy" title="wmemcpy"> 10<link rel="next" href="wmemset.html#wmemset" title="wmemset"> 11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 12<meta http-equiv="Content-Style-Type" content="text/css"> 13<style type="text/css"><!-- 14 pre.display { font-family:inherit } 15 pre.format { font-family:inherit } 16 pre.smalldisplay { font-family:inherit; font-size:smaller } 17 pre.smallformat { font-family:inherit; font-size:smaller } 18 pre.smallexample { font-size:smaller } 19 pre.smalllisp { font-size:smaller } 20 span.sc { font-variant:small-caps } 21 span.roman { font-family:serif; font-weight:normal; } 22 span.sansserif { font-family:sans-serif; font-weight:normal; } 23--></style> 24<link rel="stylesheet" type="text/css" href="../cs.css"> 25</head> 26<body> 27<div class="node"> 28<a name="wmemmove"></a> 29<p> 30Next: <a rel="next" accesskey="n" href="wmemset.html#wmemset">wmemset</a>, 31Previous: <a rel="previous" accesskey="p" href="wmemcpy.html#wmemcpy">wmemcpy</a>, 32Up: <a rel="up" accesskey="u" href="Wchar-strings.html#Wchar-strings">Wchar strings</a> 33<hr> 34</div> 35 36<h3 class="section">6.4 <code>wmemmove</code>—copy wide characters in memory with overlapping areas</h3> 37 38<p><strong>Synopsis</strong> 39<pre class="example"> #include <wchar.h> 40 wchar_t *wmemmove(wchar_t *<var>d</var>, const wchar_t *<var>s</var>, size_t <var>n</var>); 41 42</pre> 43 <p><strong>Description</strong><br> 44The <code>wmemmove</code> function copies <var>n</var> wide characters from the object 45pointed to by <var>s</var> to the object pointed to by <var>d</var>. Copying takes 46place as if the <var>n</var> wide characters from the object pointed to by 47<var>s</var> are first copied into a temporary array of <var>n</var> wide characters 48that does not overlap the objects pointed to by <var>d</var> or <var>s</var>, and then 49the <var>n</var> wide characters from the temporary array are copied into the 50object pointed to by <var>d</var>. 51 52 <p>This function is not affected by locale and all wchar_t values are 53treated identically. The null wide character and wchar_t values not 54corresponding to valid characters are not treated specially. 55 56 <p>If <var>n</var> is zero, <var>d</var> and <var>s</var> must be a valid pointers, and the 57function copies zero wide characters. 58 59 <p><br> 60<strong>Returns</strong><br> 61The <code>wmemmove</code> function returns the value of <var>d</var>. 62 63 <p><br> 64<strong>Portability</strong><br> 65<code>wmemmove</code> is ISO/IEC 9899/AMD1:1995 (ISO C). 66 67 <p>No supporting OS subroutines are required. 68 69 <p><br> 70 71 </body></html> 72 73