OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / memchr.3
index 246815d..d78b749 100644 (file)
@@ -2,6 +2,7 @@
 .\" and Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Modified Mon Apr 12 12:49:57 1993, David Metcalfe
 .\" Modified Sat Jul 24 18:56:22 1993, Rik Faith (faith@cs.unc.edu)
 .\" Modified Wed Feb 20 21:09:36 2002, Ian Redfern (redferni@logica.com)
 .\" 2008-07-09, mtk, add rawmemchr()
 .\"
-.TH MEMCHR 3  2012-04-23 "" "Linux Programmer's Manual"
+.TH MEMCHR 3  2015-01-10 "" "Linux Programmer's Manual"
 .SH NAME
 memchr, memrchr, rawmemchr \- scan memory for a character
 .SH SYNOPSIS
@@ -88,7 +90,7 @@ lies somewhere in the memory area starting at the location pointed to by
 .IR s ,
 and so performs an optimized search for
 .IR c
-(i.e., no use of a count argument argument to limit the range of the search).
+(i.e., no use of a count argument to limit the range of the search).
 If an instance of
 .I c
 is not found, the results are unpredictable.
@@ -100,7 +102,7 @@ terminating null byte:
 char *p = rawmemchr(s,\ \(aq\\0\(aq);
 .fi
 .in
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 The
 .BR memchr ()
 and
@@ -119,7 +121,15 @@ first appeared in glibc in version 2.1.
 
 .BR memrchr ()
 first appeared in glibc in version 2.2.
-.SH "CONFORMING TO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR memchr (),
+.BR memrchr (),
+and
+.BR rawmemchr ()
+functions are thread-safe.
+.SH CONFORMING TO
 The
 .BR memchr ()
 function conforms to SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
@@ -131,9 +141,10 @@ function is a GNU extension, available since glibc 2.1.91.
 The
 .BR rawmemchr ()
 function is a GNU extension, available since glibc 2.1.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR ffs (3),
 .BR index (3),
+.BR memmem (3),
 .BR rindex (3),
 .BR strchr (3),
 .BR strpbrk (3),
@@ -142,3 +153,12 @@ function is a GNU extension, available since glibc 2.1.
 .BR strspn (3),
 .BR strstr (3),
 .BR wmemchr (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.