<strncmp $a $b $len [$mode]>
<strnicmp $a $b $len [$mode]>
strnicmp behave like
strcmpi, respectively. However, each takes a third parameter
$len which gives the maximum number of characters to compare
against the corresponding value of
fewer values than
$b, its last value is re-used; if it has no
values, infinity is assumed (e.g.
$mode argument is a
compare mode to use; the default is the current apicp
stringcomparemode, with "ignorecase" added for
$mode values are used in the same order as
$b values. The
$mode argument was added in version 6.
strnicmp return $A*B$ integer values
($A$ and $B$ being the number of values of
<strncmp "this" "the" 2>
The return value in
$ret would be 0.
Text is compared according to apicp stringcomparemode (with "ignorecase" for
strnicmp) or the
$len count characters, not bytes. For byte
counting, add "iso-8859-1" to