C Function/C Functions

Command C Function/C Functions
Applicable release versions: AP 6.1
Category C Functions (120)
Description equivalent to the Pick/BASIC statement: data string

data string

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Syntax int _CP_data(CPSTR* string)
/* The following example copies the "xx" item in the md to item 
"yy". */

CPSTR * s = _CP_mkstr("copy md xx");
CPSTR * t = _CP_mkstr("yy");
CPSTR * c = _CP_str_null;
CPSTR * r = _CP_str_null;

Related cfunc.introduction