This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/9739] New: strnlen() docs make reference to an unknown 'n' variable


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]