The strcpy instruction copies the source string to the destination.
Synopsis
strcpy(ctype.dst,ctype.src [, type.len])
Description
The strcpy instruction copies a character string specified by the ctype.src argument to the address specified by the ctype.dst argument. The ctype.dst argument must be a string address. The ctype.src argument can be an address or literal string.
If the optional type.len argument is used, the instruction copies, at most, the number of characters specified by that argument. The result may or may not be null terminated, depending on whether a null terminated character was copied before the type.len character limit was reached.
Examples
In the first example, the literal string ABCDEFGHI is copied into char.10. In the second example, the string stored in char.10 is copied to char.50.
strcpy(char.10,"ABCDEFGHI")
strcpy(char.50,char.10)