Main Content
strcpy
Assign string value
Description
assigns
string str1
= str2
str1
to string str2
.
strcpy(
is an alternative way to execute str1
,str2
)str1 = str2
.
Note
The operator strcpy
is supported only in Stateflow® charts that use C as the action language.
Examples
Tips
Source and destination arguments must refer to different symbols.
Enclose literal strings with single or double quotes.
Version History
Introduced in R2018b