API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

STD_STRNCMP()

Brew Release
Brew MP 1.0.2
See Also
std_wstrncmp
Description
The std_strncmp() compares at most n bytes of two NUL-terminated character strings.
Params
n
[]:
maximum number of bytes to compare. if either s1 or s2 is shorter than n, the function terminates there
Interface
Prototype
  •    int std_strncmp(const char *s1, const char *s2, int n);
    
Return
  • 0 if strings are the same
    < 0 if s1 is less than s2
    > 0 if s1 is greater than s2