stStrNICmp Function
Declaration:
int stStrNICmp(
  const PSTR s1,
  const PSTR s2,
  SIZE maxlen
);
Parameters:
s1

Address of the first string.

s2

Address of the second string.

maxlen

Maximum number of bytes to compare.

Return value:

The function returns a negative value if s1 is less than s2, a positive value if s1 is greater than s2, or zero (0) if both are equal.

Description:

This function compares a maximum of maxlen characters of the two strings, with case insensitivity.

If functions for basic string operations are inactive in the alternative C library (by setting ST_USE_STRING_CLIB to 1), a macro named stStrNICmp will be created that calls the strnicmp function from the standard C library.

Version:1.0
Header file:ST_CLIB.h (include ST_API.h)
See also: PSTR, SIZE, ST_USE_STRING_CLIB
SpaceShadow documentation