]> git.saurik.com Git - apple/libc.git/blame_incremental - string/FreeBSD/string.3.patch
Libc-498.tar.gz
[apple/libc.git] / string / FreeBSD / string.3.patch
... / ...
CommitLineData
1--- _SB/Libc/string/FreeBSD/string.3 2003-05-20 15:23:54.000000000 -0700
2+++ _SB/Libc/string/FreeBSD/string.3.edit 2006-06-28 16:55:53.000000000 -0700
3@@ -38,77 +38,143 @@
4 .Dt STRING 3
5 .Os
6 .Sh NAME
7+.Nm index ,
8+.Nm rindex ,
9 .Nm stpcpy ,
10+.Nm strcasecmp ,
11 .Nm strcat ,
12-.Nm strncat ,
13 .Nm strchr ,
14-.Nm strrchr ,
15 .Nm strcmp ,
16-.Nm strncmp ,
17-.Nm strcasecmp ,
18-.Nm strncasecmp ,
19 .Nm strcpy ,
20-.Nm strncpy ,
21+.Nm strcspn ,
22 .Nm strerror ,
23 .Nm strlen ,
24+.Nm strncasecmp ,
25+.Nm strncat ,
26+.Nm strncmp ,
27+.Nm strncpy ,
28 .Nm strpbrk ,
29+.Nm strrchr ,
30 .Nm strsep ,
31 .Nm strspn ,
32-.Nm strcspn ,
33 .Nm strstr ,
34-.Nm strtok ,
35-.Nm index ,
36-.Nm rindex
37+.Nm strtok
38 .Nd string specific functions
39 .Sh LIBRARY
40 .Lb libc
41 .Sh SYNOPSIS
42-.In string.h
43+.In strings.h
44 .Ft char *
45-.Fn stpcpy "char *dst" "const char *src"
46-.Ft char *
47-.Fn strcat "char *s" "const char * append"
48-.Ft char *
49-.Fn strncat "char *s" "const char *append" "size_t count"
50-.Ft char *
51-.Fn strchr "const char *s" "int c"
52-.Ft char *
53-.Fn strrchr "const char *s" "int c"
54-.Ft int
55-.Fn strcmp "const char *s1" "const char *s2"
56+.Fo index
57+.Fa "const char *s"
58+.Fa "int c"
59+.Fc
60+.Ft char *
61+.Fo rindex
62+.Fa "const char *s"
63+.Fa "int c"
64+.Fc
65 .Ft int
66-.Fn strncmp "const char *s1" "const char *s2" "size_t count"
67+.Fo strcasecmp
68+.Fa "const char *s1"
69+.Fa "const char *s2"
70+.Fc
71 .Ft int
72-.Fn strcasecmp "const char *s1" "const char *s2"
73-.Ft int
74-.Fn strncasecmp "const char *s1" "const char *s2" "size_t count"
75-.Ft char *
76-.Fn strcpy "char *dst" "const char *src"
77-.Ft char *
78-.Fn strncpy "char *dst" "const char *src" "size_t count"
79+.Fo strncasecmp
80+.Fa "const char *s1"
81+.Fa "const char *s2"
82+.Fa "size_t n"
83+.Fc
84+.In string.h
85 .Ft char *
86-.Fn strerror "int errno"
87+.Fo stpcpy
88+.Fa "char *dst"
89+.Fa "const char *src"
90+.Fc
91+.Ft char *
92+.Fo strcat
93+.Fa "char *restrict s1"
94+.Fa "const char *restrict s2"
95+.Fc
96+.Ft char *
97+.Fo strchr
98+.Fa "const char *s"
99+.Fa "int c"
100+.Fc
101+.Ft int
102+.Fo strcmp
103+.Fa "const char *s1"
104+.Fa "const char *s2"
105+.Fc
106+.Ft char *
107+.Fo strcpy
108+.Fa "char *restrict s1"
109+.Fa "const char *restrict s2"
110+.Fc
111 .Ft size_t
112-.Fn strlen "const char *s"
113-.Ft char *
114-.Fn strpbrk "const char *s" "const char *charset"
115-.Ft char *
116-.Fn strsep "char **stringp" "const char *delim"
117+.Fo strcspn
118+.Fa "const char *s1"
119+.Fa "const char *s2"
120+.Fc
121+.Ft char *
122+.Fo strerror
123+.Fa "int errnum"
124+.Fc
125 .Ft size_t
126-.Fn strspn "const char *s" "const char *charset"
127+.Fo strlen
128+.Fa "const char *s"
129+.Fc
130+.Ft char *
131+.Fo strncat
132+.Fa "char *restrict s1"
133+.Fa "const char *restrict s2"
134+.Fa "size_t n"
135+.Fc
136+.Ft int
137+.Fo strncmp
138+.Fa "const char *s1"
139+.Fa "const char *s2"
140+.Fa "size_t n"
141+.Fc
142+.Ft char *
143+.Fo strncpy
144+.Fa "char *restrict s1"
145+.Fa "const char *restrict s2"
146+.Fa "size_t n"
147+.Fc
148+.Ft char *
149+.Fo strpbrk
150+.Fa "const char *s1"
151+.Fa "const char *s2"
152+.Fc
153+.Ft char *
154+.Fo strrchr
155+.Fa "const char *s"
156+.Fa "int c"
157+.Fc
158+.Ft char *
159+.Fo strsep
160+.Fa "char **stringp"
161+.Fa "const char *delim"
162+.Fc
163 .Ft size_t
164-.Fn strcspn "const char *s" "const char *charset"
165-.Ft char *
166-.Fn strstr "const char *big" "const char *little"
167-.Ft char *
168-.Fn strtok "char *s" "const char *delim"
169-.Ft char *
170-.Fn index "const char *s" "int c"
171-.Ft char *
172-.Fn rindex "const char *s" "int c"
173+.Fo strspn
174+.Fa "const char *s1"
175+.Fa "const char *s2"
176+.Fc
177+.Ft char *
178+.Fo strstr
179+.Fa "const char *s1"
180+.Fa "const char *s2"
181+.Fc
182+.Ft char *
183+.Fo strtok
184+.Fa "char *restrict s1"
185+.Fa "const char *restrict s2"
186+.Fc
187 .Sh DESCRIPTION
188 The string
189-functions manipulate strings terminated by a
190+functions manipulate strings that are terminated by a
191 null byte.
192 .Pp
193 See the specific manual pages for more information.