summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/SNIP/sstrcpy.c
blob: fd8531b304948b6273df88c3d32002d29fb8777a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <string.h>

char *sstrcpy(char *to, char *from)
{
    memmove(to, from, 1+strlen(from));
    return to;
}

char *sstrcat(char *to, char *from)
{
    sstrcpy(to + strlen(to), from);
    return to;
}