diff options
Diffstat (limited to 'src/lib/libc/string/memccpy.3')
-rw-r--r-- | src/lib/libc/string/memccpy.3 | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/lib/libc/string/memccpy.3 b/src/lib/libc/string/memccpy.3 index 61df704028..feedeff3a6 100644 --- a/src/lib/libc/string/memccpy.3 +++ b/src/lib/libc/string/memccpy.3 | |||
@@ -1,5 +1,7 @@ | |||
1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 1 | .\" $OpenBSD: memccpy.3,v 1.6 2000/04/21 15:24:19 aaron Exp $ |
2 | .\" All rights reserved. | 2 | .\" |
3 | .\" Copyright (c) 1990, 1991, 1993 | ||
4 | .\" The Regents of the University of California. All rights reserved. | ||
3 | .\" | 5 | .\" |
4 | .\" Redistribution and use in source and binary forms, with or without | 6 | .\" Redistribution and use in source and binary forms, with or without |
5 | .\" modification, are permitted provided that the following conditions | 7 | .\" modification, are permitted provided that the following conditions |
@@ -29,14 +31,14 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. |
31 | .\" | 33 | .\" |
32 | .\" from: @(#)memccpy.3 5.4 (Berkeley) 4/19/91 | 34 | .\" @(#)memccpy.3 8.1 (Berkeley) 6/9/93 |
33 | .\" $Id: memccpy.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $ | ||
34 | .\" | 35 | .\" |
35 | .Dd April 19, 1991 | 36 | .Dd June 9, 1993 |
36 | .Dt MEMCCPY 3 | 37 | .Dt MEMCCPY 3 |
37 | .Os | 38 | .Os |
38 | .Sh NAME | 39 | .Sh NAME |
39 | .Nm memccpy | 40 | .Nm memccpy |
41 | .Nd copy string until character found | ||
40 | .Sh SYNOPSIS | 42 | .Sh SYNOPSIS |
41 | .Fd #include <string.h> | 43 | .Fd #include <string.h> |
42 | .Ft void * | 44 | .Ft void * |
@@ -44,14 +46,15 @@ | |||
44 | .Sh DESCRIPTION | 46 | .Sh DESCRIPTION |
45 | The | 47 | The |
46 | .Fn memccpy | 48 | .Fn memccpy |
47 | function | 49 | function copies bytes from string |
48 | copies bytes from string | ||
49 | .Fa src | 50 | .Fa src |
50 | to string | 51 | to string |
51 | .Fa dst . | 52 | .Fa dst . |
52 | If the character | 53 | If the character |
53 | .Fa c | 54 | .Fa c |
54 | (as converted to an unsigned char) occurs in the string | 55 | (as converted to an |
56 | .Li unsigned char ) | ||
57 | occurs in the string | ||
55 | .Fa src , | 58 | .Fa src , |
56 | the copy stops and a pointer to the byte after the copy of | 59 | the copy stops and a pointer to the byte after the copy of |
57 | .Fa c | 60 | .Fa c |
@@ -60,7 +63,7 @@ in the string | |||
60 | is returned. | 63 | is returned. |
61 | Otherwise, | 64 | Otherwise, |
62 | .Fa len | 65 | .Fa len |
63 | bytes are copied, and a NULL pointer is returned. | 66 | bytes are copied, and a null pointer is returned. |
64 | .Sh SEE ALSO | 67 | .Sh SEE ALSO |
65 | .Xr bcopy 3 , | 68 | .Xr bcopy 3 , |
66 | .Xr memcpy 3 , | 69 | .Xr memcpy 3 , |
@@ -69,5 +72,5 @@ bytes are copied, and a NULL pointer is returned. | |||
69 | .Sh HISTORY | 72 | .Sh HISTORY |
70 | The | 73 | The |
71 | .Fn memccpy | 74 | .Fn memccpy |
72 | function is | 75 | function first appeared in |
73 | .Ud . | 76 | .Bx 4.4 . |