diff options
author | avsm <> | 2003-06-21 12:04:01 +0000 |
---|---|---|
committer | avsm <> | 2003-06-21 12:04:01 +0000 |
commit | 6e90194651585bafb0769ded9d72622ba977b9e7 (patch) | |
tree | 475f27c85d00c1ad6fc0502bd10171dbe50b6c7b /src/lib/libc/string/memcpy.3 | |
parent | a81dac43d76aca48a36afe9d991ea38782ddc395 (diff) | |
download | openbsd-6e90194651585bafb0769ded9d72622ba977b9e7.tar.gz openbsd-6e90194651585bafb0769ded9d72622ba977b9e7.tar.bz2 openbsd-6e90194651585bafb0769ded9d72622ba977b9e7.zip |
clarify these functions by changing references from strings to buffers
ok deraadt@, millert@, jmc@, suggested by espie@
Diffstat (limited to 'src/lib/libc/string/memcpy.3')
-rw-r--r-- | src/lib/libc/string/memcpy.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/string/memcpy.3 b/src/lib/libc/string/memcpy.3 index 7e9e5e4cf1..c8265d94a6 100644 --- a/src/lib/libc/string/memcpy.3 +++ b/src/lib/libc/string/memcpy.3 | |||
@@ -29,14 +29,14 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: memcpy.3,v 1.5 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: memcpy.3,v 1.6 2003/06/21 12:04:01 avsm Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt MEMCPY 3 | 35 | .Dt MEMCPY 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
38 | .Nm memcpy | 38 | .Nm memcpy |
39 | .Nd copy byte string | 39 | .Nd copy bytes |
40 | .Sh SYNOPSIS | 40 | .Sh SYNOPSIS |
41 | .Fd #include <string.h> | 41 | .Fd #include <string.h> |
42 | .Ft void * | 42 | .Ft void * |
@@ -46,9 +46,9 @@ The | |||
46 | .Fn memcpy | 46 | .Fn memcpy |
47 | function copies | 47 | function copies |
48 | .Fa len | 48 | .Fa len |
49 | bytes from string | 49 | bytes from buffer |
50 | .Fa src | 50 | .Fa src |
51 | to string | 51 | to buffer |
52 | .Fa dst . | 52 | .Fa dst . |
53 | .Sh RETURN VALUES | 53 | .Sh RETURN VALUES |
54 | The | 54 | The |
@@ -71,7 +71,7 @@ In this implementation | |||
71 | .Fn memcpy | 71 | .Fn memcpy |
72 | is implemented using | 72 | is implemented using |
73 | .Xr bcopy 3 , | 73 | .Xr bcopy 3 , |
74 | and therefore the strings may overlap. | 74 | and therefore the buffers may overlap. |
75 | On other systems, copying overlapping strings may produce surprises. | 75 | On other systems, copying overlapping buffers may produce surprises. |
76 | A simpler solution is to not use | 76 | A simpler solution is to not use |
77 | .Fn memcpy . | 77 | .Fn memcpy . |