summaryrefslogtreecommitdiffstats
path: root/firmware/libc/strcat.c
blob: 221529519cc908a75b8982e3f199949d31f203cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <string.h>

char *strcat(char *s1,
             const char *s2)
{
  char *s = s1;

  while (*s1)
    s1++;

  while ((*s1++ = *s2++))
    ;
  return s;
}