From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/CONTRIB/SNIP/sstrcpy.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 reference/C/CONTRIB/SNIP/sstrcpy.c (limited to 'reference/C/CONTRIB/SNIP/sstrcpy.c') diff --git a/reference/C/CONTRIB/SNIP/sstrcpy.c b/reference/C/CONTRIB/SNIP/sstrcpy.c new file mode 100755 index 0000000..fd8531b --- /dev/null +++ b/reference/C/CONTRIB/SNIP/sstrcpy.c @@ -0,0 +1,13 @@ +#include + +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; +} -- cgit v1.2.3-54-g00ecf '/cgit.png' alt='cgit logo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines