Answers for "function copy string c"

C
2

c copy string

char *str = "Hello World!";
char copy[64];		// or 'char *copy = malloc(strlen(str) + 1);'
strcpy(copy, str);
Posted by: Guest on March-22-2020

Code answers related to "C"

Browse Popular Code Answers by Language