1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-12-16 15:44:39 +00:00
202401-programming-assignments/【实践课内】13.指针1/6-3 字符串的连接.c

7 lines
137 B
C

char *str_cat(char *s, char *t) {
int s_len = strlen(s),
t_len = strlen(t);
memcpy(s + s_len, t, t_len);
return s;
}