diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-02-19 02:02:10 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-02-19 02:02:10 +0000 |
commit | ebaf36ebd838cec73c00433e7b3d41c9d126fe47 (patch) | |
tree | 4c499ca78a0565a7904daf6decf60237c57de31e /manual | |
parent | 71c254a6e656512b6d69972ec20b674901d9eebf (diff) | |
download | glibc-ebaf36ebd838cec73c00433e7b3d41c9d126fe47.tar glibc-ebaf36ebd838cec73c00433e7b3d41c9d126fe47.tar.gz glibc-ebaf36ebd838cec73c00433e7b3d41c9d126fe47.tar.bz2 glibc-ebaf36ebd838cec73c00433e7b3d41c9d126fe47.zip |
Fix parameter name in strnlen documentation.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/string.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manual/string.texi b/manual/string.texi index abfb0798b9..e02c17f111 100644 --- a/manual/string.texi +++ b/manual/string.texi @@ -303,7 +303,8 @@ This function was introduced in @w{Amendment 1} to @w{ISO C90}. The @code{strnlen} function returns the length of the string @var{s} in bytes if this length is smaller than @var{maxlen} bytes. Otherwise it returns @var{maxlen}. Therefore this function is equivalent to -@code{(strlen (@var{s}) < n ? strlen (@var{s}) : @var{maxlen})} but it +@code{(strlen (@var{s}) < @var{maxlen} ? strlen (@var{s}) : @var{maxlen})} +but it is more efficient and works even if the string @var{s} is not null-terminated. |