stStrCmp Function
Declaration:
int stStrCmp(
  const PSTR s1,
  const PSTR s2
);
Parameters:
s1

Address of the first string.

s2

Address of the second string.

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 two strings.

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

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