stStrNCmp function
Declaration:
int stStrNCmp(
  const PSTR s1,
  const PSTR s2,
  SIZE maxlen
);
Parameters:
s1

Address of the first string.

src

Address of the second string.

maxlen

Maximal number of compared bytes.

Return value:

Function returns negative value if s1 is less than s2, positive value if s1 i greater than s2 or zero (0) if the both are equal.

Description:

Function compares maximally maxlen characters of the two strings.

If functions for basic operations on string are inactive for alternative C library by setting ST_USE_STRING_CLIB for 1, it will be created stStrNCmp macro that will call strncmp function from 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