| _CP_col2 | Index Level | _CP_convert |
| Syntax | int _CP_compare(int* result, CPSTR* string1, CPSTR* string2) |
| Category | C Interface |
| Type | C Function |
| Description |
equivalent to the FlashBASIC statement: result = (string1 = string2)
This function has the following return codes: -1 string1 < string2 0 string1 = string2 1 string1 > string2 |
| Options | |
| See Also | C Functions introduction |
| Example |
CPSTR * s = _CP_mkstr("a");
CPSTR * t = _CP_mkstr("A"); int i; _CP_unix_env(); /* default is casing off - print 0 */ _CP_compare(&i,s,t); printf("%d\n",i); /* turn casing on - print 1 */ _CP_casing(1); _CP_compare(&i,s,t); printf("%d\n",i); |
| Warnings | |
| Compatibility | AP 6.1 |
| _CP_col2 | Index Level | _CP_convert |