mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 15:32:45 +00:00
Move the description of the strncmp() function from the RETURN VALUES
section to the DESCRIPTION section. PR: 12133 Submitted by: Sheldon Hearn <sheldonh@uunet.co.za>
This commit is contained in:
parent
ad227d8bcc
commit
fa91ff2797
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47879
@ -58,6 +58,12 @@ lexicographically compare the null-terminated strings
|
||||
.Fa s1
|
||||
and
|
||||
.Fa s2 .
|
||||
.Pp
|
||||
The
|
||||
.Fn strncmp
|
||||
compares not more than
|
||||
.Fa len
|
||||
characters.
|
||||
.Sh RETURN VALUES
|
||||
The
|
||||
.Fn strcmp
|
||||
@ -72,12 +78,6 @@ The comparison is done using unsigned characters, so that
|
||||
.Ql \e200
|
||||
is greater than
|
||||
.Ql \e0 .
|
||||
.Pp
|
||||
The
|
||||
.Fn strncmp
|
||||
compares not more than
|
||||
.Fa len
|
||||
characters.
|
||||
.Sh SEE ALSO
|
||||
.Xr bcmp 3 ,
|
||||
.Xr memcmp 3 ,
|
||||
|
Loading…
Reference in New Issue
Block a user