18.4.0 released Sep 25, 2023 |
copy-string <source string> to [ define ] <dest string> \ [ ( length [ define ] <length> ) \ | ( [ bytes-written [ define ] <bytes written> ) ]
char *str = "original string"; // string to change char *orig = str; // points to original copy of the string to change copy-string str to str // make a copy of string to change and assign it to itself str[0] = 'O'; // change the copy // Now "str" points to "Original string" // and "orig" points to "original string"
char *other_string="some value"; copy-string other_string to define my_str bytes-written define bw
char *other_string="some value"; copy-string other_string to define my_str length 3