cfunc.data C Function/C Functions

cfunc.data

Command cfunc.data 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)
Options
Example
/* 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;

_CP_data(t);
_CP_execute(_CP_EXECUTE,s,&c,&r);
Purpose
Related cfunc.introduction