Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ezeio2:scriptref:strcmp [2019-06-15 18:28] – created andreh | ezeio2:scriptref:strcmp [2019-09-02 21:42] (current) – andreh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Script reference ====== | + | ==== strcmp ==== |
| - | + | ||
| - | ==== strcmp( string1[], string2[], ignorecase=false, | + | |
| Compare strings | Compare strings | ||
| Line 20: | Line 18: | ||
| === 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 29: | ||
| new s2{20} = " | new s2{20} = " | ||
| - | x = strcmp(s1, s2, true); | + | x = strcmp(s1, s2, true); |
| | | ||
| // x is now 0 | // x is now 0 | ||