cfunc.oconv C Function/C Functions

cfunc.oconv

Command cfunc.oconv C Function/C Functions
Applicable release versions: AP 6.1
Category C Functions (120)
Description equivalent to the following Pick/BASIC statement: result = oconv(string1, string2)

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Syntax int _CP_oconv(CPSTR** result, CPSTR* string1, CPSTR* string2)
Options
Example
CPSTR * s = _CP_mkstr("a2");
CPSTR * t = _CP_mkstr("mca");

_CP_oconv(&s,s,t);
_CP_print(s);
Prints "a".
Purpose
Related cfunc.introduction