summaryrefslogtreecommitdiff
path: root/userland/libc/string/strcat.c
blob: c430698874a868471a38290bd888d6be5f557f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <string.h>

char *strcat(char *s1, const char *s2) {
  strcpy(s1 + strlen(s1), s2);
  return s1;
  /*
char *r = s1;
for (; *s1; s1++)
;
for (; *s2; s2++, s1++)
*s1 = *s2;
return r;*/
}