=
strcpy
Assign string value
dest = src
strcpy(dest,src)
example
dest = src assigns string src to dest.
dest
src
strcpy(dest,src) is an alternative way to execute dest = src.
expand all
Assign string data to s1 and s2.
s1
s2
s1 = 'hello'; s2 = "good bye";
Assign string data to s3 and s4.
s3
s4
strcpy(s3,'howdy'); strcpy(s4,"so long");
Use in Stateflow® charts that use C as the action language.
Source and destination strings must refer to different symbols.
Enclose literal strings with single or double quotes.