<syntaxhighlight> char* str = "Hello"; char dest[12];
strcpy( dest, str ); strcat( dest, ".txt" ); </syntaxhighlight>