Copy string
strcmp( dest[], source[], maxlength=sizeof dest )
Copy the source
string to dest
.
dest | destination buffer |
source | string to be copied |
maxlength (optional) | maximum number of characters to copy |
Returns number of characters copied.
new s{20}; strcopy(s, "ABCdef"); // returns 6 // s now contains "ABCdef"