ParamSet.strncasecmp

Compares a to b, treating ASCII characters case-insensitively. If a and b have a different length, the first common characters are compared. If these are equal, the longer string compares greater.

To see if the content of a and b is the same, use

(a.length == b.length) && !strncasecmp (a, b)

.

Treats null strings like empty strings.

class ParamSet
static
int
strncasecmp

Parameters

a cstring

string to compare against b

b cstring

string to compare against a

Return Value

Type: int

a value greater than 0 if a compares greater than b, less than 0 if a compares less than b, or 0 if a and b are of equal length and all characters are equal.

Meta