int stStrNCmp( const PSTR s1, const PSTR s2, SIZE maxlen );
Address of the first string.
Address of the second string.
Maximum number of bytes to compare.
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.
This function compares a maximum of maxlen characters of the 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 stStrNCmp will be created that calls the strncmp
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 |