c copy string

C
char *str = "Hello World!";
char copy[64];		// or 'char *copy = malloc(strlen(str) + 1);'
strcpy(copy, str);
Source

Also in C: