cfunc.cat C Function/C Functions

cfunc.cat

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

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

_CP_unix_env();
_CP_cat(&s,s,t);
_CP_TERM(s);
printf("%sn",_CP_SADDR(s));
Purpose
Related cfunc.introduction