cfunc.data
Pick/BASIC 'data' functionality from C.
Syntax
int _CP_data(CPSTR* string)
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.
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);
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
