2004-11-03 13:51:07 +00:00
|
|
|
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to make and distribute verbatim copies of this
|
|
|
|
.\" manual provided the copyright notice and this permission notice are
|
|
|
|
.\" preserved on all copies.
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to copy and distribute modified versions of this
|
|
|
|
.\" manual under the conditions for verbatim copying, provided that the
|
|
|
|
.\" entire resulting derived work is distributed under the terms of a
|
|
|
|
.\" permission notice identical to this one.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Since the Linux kernel and libraries are constantly changing, this
|
|
|
|
.\" manual page may be incorrect or out-of-date. The author(s) assume no
|
|
|
|
.\" responsibility for errors or omissions, or for damages resulting from
|
|
|
|
.\" the use of the information contained herein. The author(s) may not
|
|
|
|
.\" have taken the same level of care in the production of this manual,
|
|
|
|
.\" which is licensed free of charge, as they might when working
|
|
|
|
.\" professionally.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
|
|
|
.\" the source, must acknowledge the copyright and authors of this work.
|
|
|
|
.\"
|
|
|
|
.\" References consulted:
|
|
|
|
.\" Linux libc source code
|
|
|
|
.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
|
|
|
|
.\" 386BSD man pages
|
|
|
|
.\" Modified Sat Jul 24 18:49:59 1993 by Rik Faith (faith@cs.unc.edu)
|
|
|
|
.TH MEMMOVE 3 1993-04-10 "GNU" "Linux Programmer's Manual"
|
|
|
|
.SH NAME
|
|
|
|
memmove \- copy memory area
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
|
|
|
.B #include <string.h>
|
|
|
|
.sp
|
|
|
|
.BI "void *memmove(void *" dest ", const void *" src ", size_t " n );
|
|
|
|
.fi
|
|
|
|
.SH DESCRIPTION
|
2007-05-12 09:06:04 +00:00
|
|
|
The
|
|
|
|
.BR memmove ()
|
|
|
|
function copies \fIn\fP bytes from memory area
|
2007-04-24 16:44:51 +00:00
|
|
|
\fIsrc\fP to memory area \fIdest\fP.
|
2007-05-26 15:44:01 +00:00
|
|
|
The memory areas may overlap: copying takes place as though
|
|
|
|
the bytes in
|
|
|
|
.I src
|
|
|
|
are first copied into a temporary array that does not overlap
|
|
|
|
.I src
|
|
|
|
or
|
2007-12-10 14:42:10 +00:00
|
|
|
.IR dest ,
|
2007-05-26 15:44:01 +00:00
|
|
|
and the bytes are then copied from the temporary array to
|
|
|
|
.IR dest .
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH "RETURN VALUE"
|
2007-05-12 09:06:04 +00:00
|
|
|
The
|
|
|
|
.BR memmove ()
|
|
|
|
function returns a pointer to \fIdest\fP.
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH "CONFORMING TO"
|
2006-12-16 22:11:08 +00:00
|
|
|
SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR bcopy (3),
|
|
|
|
.BR memccpy (3),
|
|
|
|
.BR memcpy (3),
|
|
|
|
.BR strcpy (3),
|
|
|
|
.BR strncpy (3),
|
|
|
|
.BR wmemmove (3)
|