xref: /original-bsd/lib/libc/string/bcopy.3 (revision a1c2194a)
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.\"
7.\" %sccs.include.redist.man%
8.\"
9.\"     @(#)bcopy.3	5.3 (Berkeley) 04/19/91
10.\"
11.Dd
12.Dt BCOPY 3
13.Os BSD 4.2
14.Sh NAME
15.Nm bcopy
16.Nd copy byte string
17.Sh SYNOPSIS
18.Fd #include <string.h>
19.Ft void
20.Fn bcopy "const void *src" "void *dst" "size_t len"
21.Sh DESCRIPTION
22The
23.Fn bcopy
24function
25copies
26.Fa len
27bytes from string
28.Fa src
29to string
30.Fa dst .
31The two strings may overlap.
32If
33.Fa len
34is zero, no bytes are copied.
35.Sh SEE ALSO
36.Xr memccpy 3 ,
37.Xr memcpy 3 ,
38.Xr memmove 3 ,
39.Xr strcpy 3 ,
40.Xr strncpy 3
41.Sh HISTORY
42A
43.Fn bcopy
44function appeared in
45.Bx 4.2 .
46