#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void) {
    char* c1;
    char* c2;
    size_t len;

    c1 = "hogefuga";
    len = strlen(c1) + 1;
    c2 = strcpy(malloc(len), c1);

    printf("%s", c2);
    free&(c2);

    return 0;
}