diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-10-19 06:54:38 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-10-19 06:54:38 +0000 |
commit | e511ffb6bcaa9a584412a95e602435827e302033 (patch) | |
tree | 79a5a572acdc2e97d1ea0640b3a63f567e1a00a8 /man3/strnlen.3 | |
parent | ce9cb96e16485875d545897d73ec8378d6a7cf67 (diff) |
Automated addition of parentheses by add_parens_for_own_funcs.sh
Diffstat (limited to 'man3/strnlen.3')
-rw-r--r-- | man3/strnlen.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/strnlen.3 b/man3/strnlen.3 index 59f07061..28e34fb5 100644 --- a/man3/strnlen.3 +++ b/man3/strnlen.3 @@ -20,12 +20,12 @@ strnlen \- determine the length of a fixed-size string .BI "size_t strnlen(const char *" s ", size_t " maxlen ); .fi .SH DESCRIPTION -The \fBstrnlen\fP function returns the number of characters in the string +The \fBstrnlen\fP() function returns the number of characters in the string pointed to by \fIs\fP, not including the terminating '\\0' character, but -at most \fImaxlen\fP. In doing this, \fBstrnlen\fP looks only at the first +at most \fImaxlen\fP. In doing this, \fBstrnlen\fP() looks only at the first \fImaxlen\fP characters at \fIs\fP and never beyond \fIs+maxlen\fP. .SH "RETURN VALUE" -The \fBstrnlen\fP function returns \fIstrlen(s)\fP, if that is less than +The \fBstrnlen\fP() function returns \fIstrlen(s)\fP, if that is less than \fImaxlen\fP, or \fImaxlen\fP if there is no '\\0' character among the first \fImaxlen\fP characters pointed to by \fIs\fP. .SH "CONFORMING TO" |