What are the functions of strcpy in C language?
- Copy a string to another string.
- During the duplication process, the characters from the source string are continuously copied until a null character ‘\0’ is encountered.
- This can be used to duplicate strings, arrays, and more.
- After the copying is done, the target string will be terminated with ‘\0’, ensuring that the target string is a valid C string.