summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/memchr.3
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-04-21 15:24:18 +0000
committeraaron <aaron@openbsd.org>2000-04-21 15:24:18 +0000
commit60ab2826e6a68856a3f0b37c4345bfc35c6c0c28 (patch)
tree242337194a050a28ff13525992611dabe0a84956 /lib/libc/string/memchr.3
parentNRL pcb issue; inp_{f,l}addr{,6} is a union so we need to be sure about (diff)
downloadwireguard-openbsd-60ab2826e6a68856a3f0b37c4345bfc35c6c0c28.tar.xz
wireguard-openbsd-60ab2826e6a68856a3f0b37c4345bfc35c6c0c28.zip
Flesh out libc string function man pages.
Diffstat (limited to 'lib/libc/string/memchr.3')
-rw-r--r--lib/libc/string/memchr.315
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libc/string/memchr.3 b/lib/libc/string/memchr.3
index 0bcdde698e8..632c440b5b8 100644
--- a/lib/libc/string/memchr.3
+++ b/lib/libc/string/memchr.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: memchr.3,v 1.4 1999/09/21 16:44:01 espie Exp $
+.\" $OpenBSD: memchr.3,v 1.5 2000/04/21 15:24:19 aaron Exp $
.\"
.Dd June 29, 1991
.Dt MEMCHR 3
@@ -48,18 +48,16 @@
.Sh DESCRIPTION
The
.Fn memchr
-function
-locates the first occurrence of
+function locates the first occurrence of
.Fa c
-(converted to an unsigned char)
+(converted to an
+.Li unsigned char )
in string
.Fa b .
.Sh RETURN VALUES
The
.Fn memchr
-function
-returns a pointer to the byte located,
-or
+function returns a pointer to the byte located, or
.Dv NULL
if no such byte exists within
.Fa len
@@ -76,6 +74,5 @@ bytes.
.Sh STANDARDS
The
.Fn memchr
-function
-conforms to
+function conforms to
.St -ansiC .