summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/memchr.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/memchr.3')
-rw-r--r--src/lib/libc/string/memchr.320
1 files changed, 8 insertions, 12 deletions
diff --git a/src/lib/libc/string/memchr.3 b/src/lib/libc/string/memchr.3
index 265711e3b5..632c440b5b 100644
--- a/src/lib/libc/string/memchr.3
+++ b/src/lib/libc/string/memchr.3
@@ -33,8 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" from: @(#)memchr.3 5.4 (Berkeley) 6/29/91 36.\" $OpenBSD: memchr.3,v 1.5 2000/04/21 15:24:19 aaron Exp $
37.\" $Id: memchr.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $
38.\" 37.\"
39.Dd June 29, 1991 38.Dd June 29, 1991
40.Dt MEMCHR 3 39.Dt MEMCHR 3
@@ -49,23 +48,21 @@
49.Sh DESCRIPTION 48.Sh DESCRIPTION
50The 49The
51.Fn memchr 50.Fn memchr
52function 51function locates the first occurrence of
53locates the first occurrence of
54.Fa c 52.Fa c
55(converted to an unsigned char) 53(converted to an
54.Li unsigned char )
56in string 55in string
57.Fa b . 56.Fa b .
58.Sh RETURN VALUES 57.Sh RETURN VALUES
59The 58The
60.Fn memchr 59.Fn memchr
61function 60function returns a pointer to the byte located, or
62returns a pointer to the byte located, 61.Dv NULL
63or NULL if no such byte exists within 62if no such byte exists within
64.Fa len 63.Fa len
65bytes. 64bytes.
66.Sh SEE ALSO 65.Sh SEE ALSO
67.Xr index 3 ,
68.Xr rindex 3 ,
69.Xr strchr 3 , 66.Xr strchr 3 ,
70.Xr strcspn 3 , 67.Xr strcspn 3 ,
71.Xr strpbrk 3 , 68.Xr strpbrk 3 ,
@@ -77,6 +74,5 @@ bytes.
77.Sh STANDARDS 74.Sh STANDARDS
78The 75The
79.Fn memchr 76.Fn memchr
80function 77function conforms to
81conforms to
82.St -ansiC . 78.St -ansiC .