mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 16:54:02 +00:00
Note that strncmp() will not compare characters after a NUL character.
Add a missing word. Bump document date. Inspired by: IEEE Std 1003.1-200x (Draft 7) MFC after: 3 days
This commit is contained in:
parent
a9227c40eb
commit
43e13bf58f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84810
|
@ -36,7 +36,7 @@
|
|||
.\" @(#)strcmp.3 8.1 (Berkeley) 6/4/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd June 4, 1993
|
||||
.Dd October 11, 2001
|
||||
.Dt STRCMP 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -64,9 +64,16 @@ and
|
|||
.Pp
|
||||
The
|
||||
.Fn strncmp
|
||||
function
|
||||
compares not more than
|
||||
.Fa len
|
||||
characters.
|
||||
Because
|
||||
.Fn strncmp
|
||||
is designed for comparing strings rather than binary data,
|
||||
characters that appear after a
|
||||
.Ql \e0
|
||||
character are not compared.
|
||||
.Sh RETURN VALUES
|
||||
The
|
||||
.Fn strcmp
|
||||
|
|
Loading…
Reference in a new issue