]> git.saurik.com Git - apple/libc.git/blobdiff - string/FreeBSD/strchr.3
Libc-1081.1.3.tar.gz
[apple/libc.git] / string / FreeBSD / strchr.3
index f6780e0826d7499c22253dd9c4763730e4493a61..512bc6f26bd9781bedff7a8eb50ec790fa95a1a2 100644 (file)
 .\" 2. Redistributions in binary form must reproduce the above copyright
 .\"    notice, this list of conditions and the following disclaimer in the
 .\"    documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\"    must display the following acknowledgement:
-.\"    This product includes software developed by the University of
-.\"    California, Berkeley and its contributors.
 .\" 4. Neither the name of the University nor the names of its contributors
 .\"    may be used to endorse or promote products derived from this software
 .\"    without specific prior written permission.
@@ -34,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)strchr.3   8.2 (Berkeley) 4/19/94
-.\" $FreeBSD: src/lib/libc/string/strchr.3,v 1.11 2003/09/04 20:36:54 simon Exp $
+.\" $FreeBSD: src/lib/libc/string/strchr.3,v 1.14 2009/04/07 13:42:53 trasz Exp $
 .\"
 .Dd April 19, 1994
 .Dt STRCHR 3
 .Sh SYNOPSIS
 .In string.h
 .Ft "char *"
-.Fn strchr "const char *s" "int c"
+.Fo strchr
+.Fa "const char *s"
+.Fa "int c"
+.Fc
 .Ft "char *"
-.Fn strrchr "const char *s" "int c"
+.Fo strrchr
+.Fa "const char *s"
+.Fa "int c"
+.Fc
 .Sh DESCRIPTION
 The
 .Fn strchr
@@ -59,7 +61,7 @@ function locates the first occurrence of
 .Vt char )
 in the string pointed to by
 .Fa s .
-The terminating null character is considered part of the string;
+The terminating null character is considered to be part of the string;
 therefore if
 .Fa c
 is
@@ -70,7 +72,7 @@ the functions locate the terminating
 The
 .Fn strrchr
 function is identical to
-.Fn strchr
+.Fn strchr ,
 except it locates the last occurrence of
 .Fa c .
 .Sh RETURN VALUES
@@ -83,12 +85,14 @@ return a pointer to the located character, or
 if the character does not appear in the string.
 .Sh SEE ALSO
 .Xr memchr 3 ,
+.Xr memmem 3 ,
 .Xr strcspn 3 ,
 .Xr strpbrk 3 ,
 .Xr strsep 3 ,
 .Xr strspn 3 ,
 .Xr strstr 3 ,
-.Xr strtok 3
+.Xr strtok 3 ,
+.Xr wcschr 3
 .Sh STANDARDS
 The functions
 .Fn strchr