xref: /original-bsd/lib/libc/string/memmove.3 (revision bfe5c829)
1.\" Copyright (c) 1990, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" %sccs.include.redist.man%
9.\"
10.\"     @(#)memmove.3	5.5 (Berkeley) 06/29/91
11.\"
12.Dd
13.Dt MEMMOVE 3
14.Os
15.Sh NAME
16.Nm memmove
17.Nd copy byte string
18.Sh SYNOPSIS
19.Fd #include <string.h>
20.Ft void *
21.Fn memmove "void *dst" "const void *src" "size_t len"
22.Sh DESCRIPTION
23The
24.Fn memmove
25function
26copies
27.Fa len
28bytes from string
29.Fa src
30to string
31.Fa dst .
32The two strings may overlap;
33the copy is always done in a non-destructive manner.
34.Sh RETURN VALUES
35The
36.Fn memmove
37function returns the original value of
38.Fa dst .
39.Sh SEE ALSO
40.Xr bcopy 3 ,
41.Xr memccpy 3 ,
42.Xr memcpy 3 ,
43.Xr strcpy 3
44.Sh STANDARDS
45The
46.Fn memmove
47function
48conforms to
49.St -ansiC .
50