ezeio2:scriptref:strcmp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ezeio2:scriptref:strcmp [2019-06-15 18:28]
andreh created
ezeio2:scriptref:strcmp [2019-09-02 21:42] (current)
andreh
Line 1: Line 1:
-===== Script reference ====== +==== strcmp ====
- +
-==== strcmp( string1[], string2[], ignorecase=false, length=1024 ) ====+
  
 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} = "abc";     new s2{20} = "abc";
  
-    x = strcmp(s1, s2, true);+    x = strcmp(s1, s2, true);  // ignore case
          
     // x is now 0     // x is now 0
  • ezeio2/scriptref/strcmp.1560623310.txt.gz
  • Last modified: 2019-06-15 18:28
  • by andreh