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