[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/c/string/byte/strncmp [Back]  [Original]

strncmp cppreference.com
cppreference.com

strncmp

cppreference.com
< c | string | byte

<metanoindex/>

<tbody> </tbody>
<string.h>
int strncmp( const char *lhs, const char *rhs, size_t count );
count . .
:
Compares at most count characters of two null-terminated byte strings. The comparison is done lexicographically.
Google.
. .

lhs, rhs
:
pointers to the null-terminated byte strings to compare
Google.
. .
count
:
maximum number of characters to compare
Google.
. .

, lhs rhs.
:
Negative value if lhs is less than rhs.
Google.
. .
0 lhs rhs.
:
0 if lhs is equal to rhs.
Google.
. .
, lhs rhs.
:
Positive value if lhs is greater than rhs.
Google.
. .

.


() []

() []

() []
C++ strncmp

Web Proxy Viewer  |  New URL  |  Original Page