]>
Commit | Line | Data |
---|---|---|
1f2f436a A |
1 | --- strchr.3.bsdnew 2009-11-18 18:24:33.000000000 -0800 |
2 | +++ strchr.3 2009-11-18 18:24:33.000000000 -0800 | |
3 | @@ -43,9 +43,15 @@ | |
224c7076 A |
4 | .Sh SYNOPSIS |
5 | .In string.h | |
6 | .Ft "char *" | |
7 | -.Fn strchr "const char *s" "int c" | |
8 | +.Fo strchr | |
9 | +.Fa "const char *s" | |
10 | +.Fa "int c" | |
11 | +.Fc | |
12 | .Ft "char *" | |
13 | -.Fn strrchr "const char *s" "int c" | |
14 | +.Fo strrchr | |
15 | +.Fa "const char *s" | |
16 | +.Fa "int c" | |
17 | +.Fc | |
18 | .Sh DESCRIPTION | |
19 | The | |
20 | .Fn strchr | |
1f2f436a | 21 | @@ -55,7 +61,7 @@ function locates the first occurrence of |
224c7076 A |
22 | .Vt char ) |
23 | in the string pointed to by | |
24 | .Fa s . | |
25 | -The terminating null character is considered part of the string; | |
26 | +The terminating null character is considered to be part of the string; | |
27 | therefore if | |
28 | .Fa c | |
29 | is | |
1f2f436a | 30 | @@ -66,7 +72,7 @@ the functions locate the terminating |
224c7076 A |
31 | The |
32 | .Fn strrchr | |
33 | function is identical to | |
34 | -.Fn strchr | |
35 | +.Fn strchr , | |
36 | except it locates the last occurrence of | |
37 | .Fa c . | |
38 | .Sh RETURN VALUES |