]>
Commit | Line | Data |
---|---|---|
9385eb3d A |
1 | --- memcpy.3.orig Tue May 20 15:23:54 2003 |
2 | +++ memcpy.3 Sat Jun 21 06:17:05 2003 | |
3 | @@ -58,6 +58,18 @@ | |
4 | .Fa src | |
5 | to string | |
6 | .Fa dst . | |
7 | +If | |
8 | +.Fa src | |
9 | +and | |
10 | +.Fa dst | |
11 | +overlap, behaviour is undefined. | |
12 | +Applications in which | |
13 | +.Fa src | |
14 | +and | |
15 | +.Fa dst | |
16 | +might overlap should use | |
17 | +.Xr memmove 3 | |
18 | +instead. | |
19 | .Sh RETURN VALUES | |
20 | The | |
21 | .Fn memcpy | |
22 | @@ -75,17 +87,3 @@ | |
23 | function | |
24 | conforms to | |
25 | .St -isoC . | |
26 | -.Sh BUGS | |
27 | -In this implementation | |
28 | -.Fn memcpy | |
29 | -is implemented using | |
30 | -.Xr bcopy 3 , | |
31 | -and therefore the strings may overlap. | |
32 | -On other systems, copying overlapping strings may produce surprises. | |
33 | -Programs intended to be portable should use | |
34 | -.Xr memmove 3 | |
35 | -when | |
36 | -.Fa src | |
37 | -and | |
38 | -.Fa dst | |
39 | -may overlap. |