Answers for "c language strdup"

C
2

strdup c

// use : char *strdup(char *str)

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

printf("%s", string2)

// print : hello
Posted by: Guest on January-10-2021

Code answers related to "C"

Browse Popular Code Answers by Language