xref: /original-bsd/lib/libc/string/memmove.3 (revision c1946e27)
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.
6.\" %sccs.include.redist.man%
7.\"
8.\"     @(#)memmove.3	5.4 (Berkeley) 04/19/91
9.\"
10.Dd
11.Dt MEMMOVE 3
12.Os
13.Sh NAME
14.Nm memmove
15.Nd copy byte string
16.Sh SYNOPSIS
17.Fd #include <string.h>
18.Ft void *
19.Fn memmove "void *dst" "const void *src" "size_t len"
20.Sh DESCRIPTION
21The
22.Fn memmove
23function
24copies
25.Fa len
26bytes from string
27.Fa src
28to string
29.Fa dst .
30The two strings may overlap;
31the copy is always done in a non-destructive manner.
32.Sh RETURN VALUES
33The
34.Fn memmove
35function returns the original value of
36.Fa dst .
37.Sh SEE ALSO
38.Xr bcopy 3 ,
39.Xr memccpy 3 ,
40.Xr memcpy 3 ,
41.Xr strcpy 3
42.Sh STANDARDS
43The
44.Fn memmove
45function
46conforms to
47.St -ansiC .
48