Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

strncmp string1 string2 n


Alias

None


Description

Perform a binary safe string comparison of the first n characters.


Parameters

string1

The first string.

string2

The second string.

n

Number of characters to use in the comparison.


Return Value

Integer: Returns < 0 if string1 is less than string2; >0 if string1 is greater than string2, and 0 if they are equal. Use libcox_value_to_int() to extract the processing result.