| _CP_compare | Index Level | _CP_count |
| Syntax | int _CP_convert(CPSTR** result, CPSTR* string1, CPSTR* string2) |
| Category | C Interface |
| Type | C Function |
| Description |
equivalent to the FlashBASIC statement: convert string1 to string2 in result
This function returns -1 if an error occurs. The error code is contained in _CP_errno. |
| Options | |
| See Also | C Functions introduction |
| Example |
/* The following example prints "bbc". */
CPSTR * s = _CP_mkstr("a"); CPSTR * t = _CP_mkstr("b"); CPSTR * u = _CP_mkstr("abc"); _CP_unix_env(); _CP_convert(&u,s,t); _CP_TERM(u); printf("%s\n",_CP_SADDR(u)); |
| Warnings | |
| Compatibility | AP 6.1 |
| _CP_compare | Index Level | _CP_count |