📜  strdup - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:40.934000             🧑  作者: Mango

代码示例1
// use : char *strdup(char *str)

string1 = "hello"
string2 = strdup(string1)"

printf("%s", string2)

// print : hello