Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
ezeio2:scriptref:strcmp [2019-06-15 18:28] – created andreh | ezeio2:scriptref:strcmp [2019-06-15 18:29] – andreh | ||
---|---|---|---|
Line 20: | Line 20: | ||
=== Return value === | === Return value === | ||
- | Returns 0 if the strings are equal.\ | + | Returns 0 if the strings are equal.\\ |
- | Returns 1 if string1 > string2.\ | + | Returns 1 if string1 > string2.\\ |
Returns -1 if string1 < string2. | Returns -1 if string1 < string2. | ||
Line 31: | Line 31: | ||
new s2{20} = " | new s2{20} = " | ||
- | x = strcmp(s1, s2, true); | + | x = strcmp(s1, s2, true); |
| | ||
// x is now 0 | // x is now 0 |