* Copy a string. * * @param d The destination memory. * @param s The source string. * @return A pointer to the destination memory. */
| 148 | * @return A pointer to the destination memory. |
| 149 | */ |
| 150 | char *strcpy(char *d, const char *s) |
| 151 | { |
| 152 | return strncpy(d, s, strlen(s) + 1); |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Concatenates two strings with a maximum length. |
no test coverage detected