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/strcasecmp.3 | |
| 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/strcasecmp.3')
| -rw-r--r-- | lib/libc/string/strcasecmp.3 | 10 |
1 files changed, 7 insertions, 3 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. |
