This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/9739] New: strnlen() docs make reference to an unknown 'n' variable
- From: "f18m_cpp217828 at yahoo dot it" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 Jan 2009 11:35:52 -0000
- Subject: [Bug manual/9739] New: strnlen() docs make reference to an unknown 'n' variable
- Reply-to: sourceware-bugzilla at sourceware dot org
At http://www.gnu.org/software/libc/manual/html_node/String-Length.html you can
see that for strnlen() the description says "Therefore this function is
equivalent to (strlen (s) < n ? strlen (s) : maxlen) but it is more efficient..."
I think it should read as "Therefore this function is equivalent to (strlen (s)
< maxlen ? strlen (s) : maxlen) but it is more efficient..."
Note the substitution of "n" with "maxlen". "n" is not in the function prototype...
--
Summary: strnlen() docs make reference to an unknown 'n' variable
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: manual
AssignedTo: roland at gnu dot org
ReportedBy: f18m_cpp217828 at yahoo dot it
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9739
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.