strnlen.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-18 14:17:29 +01:00
parent 5af40309cc
commit 5c6de1fc37
1 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ _GNU_SOURCE
.SH DESCRIPTION
The
.BR strnlen ()
function returns the number of bytes in the string
function returns the number of characters in the string
pointed to by
.IR s ,
excluding the terminating null byte (\(aq\\0\(aq),
@ -51,7 +51,7 @@ In doing this,
.BR strnlen ()
looks only at the first
.I maxlen
bytes at
characters in the string pointed to by
.I s
and never beyond
.IR s+maxlen .
@ -64,9 +64,9 @@ if that is less than
.IR maxlen ,
or
.I maxlen
if there is no null byte (\(aq\\0\(aq) among the first
if there is no null terminating (\(aq\\0\(aq) among the first
.I maxlen
bytes pointed to by
characters pointed to by
.IR s .
.SH ATTRIBUTES
For an explanation of the terms used in this section, see