]> git.saurik.com Git - apple/libc.git/blame - string/FreeBSD/memccpy.3.patch
Libc-498.1.7.tar.gz
[apple/libc.git] / string / FreeBSD / memccpy.3.patch
CommitLineData
224c7076
A
1--- _SB/Libc/string/FreeBSD/memccpy.3 2003-05-20 15:23:54.000000000 -0700
2+++ _SB/Libc/string/FreeBSD/memccpy.3.edit 2006-06-28 16:55:53.000000000 -0700
3@@ -43,26 +43,31 @@
4 .Sh SYNOPSIS
5 .In string.h
6 .Ft void *
7-.Fn memccpy "void *dst" "const void *src" "int c" "size_t len"
8+.Fo memccpy
9+.Fa "void *restrict s1"
10+.Fa "const void *restrict s2"
11+.Fa "int c"
12+.Fa "size_t n"
13+.Fc
14 .Sh DESCRIPTION
15 The
16 .Fn memccpy
17 function
18 copies bytes from string
19-.Fa src
20+.Fa s2
21 to string
22-.Fa dst .
23+.Fa s1 .
24 If the character
25 .Fa c
26 (as converted to an unsigned char) occurs in the string
27-.Fa src ,
28+.Fa s2 ,
29 the copy stops and a pointer to the byte after the copy of
30 .Fa c
31 in the string
32-.Fa dst
33+.Fa s1
34 is returned.
35 Otherwise,
36-.Fa len
37+.Fa n
38 bytes are copied, and a NULL pointer is returned.
39 .Sh SEE ALSO
40 .Xr bcopy 3 ,