diff options
| author | tron <tron@NetBSD.org> | 1998-10-23 17:49:29 +0000 |
|---|---|---|
| committer | tron <tron@NetBSD.org> | 1998-10-23 17:49:29 +0000 |
| commit | bec823a92694ffded8e1808a38eeaa26234930c8 (patch) | |
| tree | 8dc98ceb1309b2bccfae4b96b66a43265c572684 /lib/libc/string | |
| parent | 354f32509f2ff2a414fe63bf28a243c6feabfd5c (diff) | |
Add note about special case when calling strcmp() or strcasecmp() with
len = 0 as suggested by Jaromir Dolecek in PR lib/6344.
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/strcasecmp.3 | 10 | ||||
| -rw-r--r-- | lib/libc/string/strcmp.3 | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lib/libc/string/strcasecmp.3 b/lib/libc/string/strcasecmp.3 index 756137edc12..7ee42de7e7b 100644 --- a/lib/libc/string/strcasecmp.3 +++ b/lib/libc/string/strcasecmp.3 @@ -32,7 +32,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strcasecmp.3 8.1 (Berkeley) 6/9/93 -.\" $NetBSD: strcasecmp.3,v 1.8 1998/02/05 18:50:42 perry Exp $ +.\" $NetBSD: strcasecmp.3,v 1.9 1998/10/23 17:49:29 tron Exp $ .\" .Dd June 9, 1993 .Dt STRCASECMP 3 @@ -87,5 +87,9 @@ The .Fn strcasecmp and .Fn strncasecmp -functions first appeared in -.Bx 4.4 . +.Sh NOTES +If +.Fa len +is zero +.Fn strncasecmp +returns always 0. diff --git a/lib/libc/string/strcmp.3 b/lib/libc/string/strcmp.3 index 11e35c20c08..31a0816095d 100644 --- a/lib/libc/string/strcmp.3 +++ b/lib/libc/string/strcmp.3 @@ -34,7 +34,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strcmp.3 8.1 (Berkeley) 6/4/93 -.\" $NetBSD: strcmp.3,v 1.6 1998/02/05 18:50:45 perry Exp $ +.\" $NetBSD: strcmp.3,v 1.7 1998/10/23 17:49:30 tron Exp $ .\" .Dd June 4, 1993 .Dt STRCMP 3 @@ -95,3 +95,9 @@ and functions conform to .St -ansiC . +.Sh NOTES +If +.Fa len +is zero +.Fn strncmp +returns always 0. |
