Skip to content

Commit

Permalink
Fix parameter name in strnlen documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Feb 19, 2012
1 parent 71c254a commit ebaf36e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-02-19 Joseph Myers <joseph@codesourcery.com>

[BZ #9739]
* manual/string.texi (strnlen): Use correct parameter name in
equivalent expression.

2012-02-19 Joseph Myers <joseph@codesourcery.com>

[BZ #11174]
Expand Down
8 changes: 4 additions & 4 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Version 2.16

* The following bugs are resolved with this release:

174, 350, 411, 3335, 4026, 4596, 4822, 5077, 5805, 5993, 6884, 6907, 9902,
10140, 10210, 11174, 11322, 11494, 12047, 13058, 13525, 13526, 13527,
13528, 13529, 13530, 13531, 13532, 13533, 13547, 13551, 13552, 13553,
13555, 13559, 13583, 13618, 13704
174, 350, 411, 3335, 4026, 4596, 4822, 5077, 5805, 5993, 6884, 6907, 9739,
9902, 10140, 10210, 11174, 11322, 11494, 12047, 13058, 13525, 13526,
13527, 13528, 13529, 13530, 13531, 13532, 13533, 13547, 13551, 13552,
13553, 13555, 13559, 13583, 13618, 13704

* ISO C11 support:

Expand Down
3 changes: 2 additions & 1 deletion manual/string.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit ebaf36e

Please sign in to comment.