diff options
Diffstat (limited to 'src/base/string/raw/copy.c')
-rw-r--r-- | src/base/string/raw/copy.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/base/string/raw/copy.c b/src/base/string/raw/copy.c new file mode 100644 index 0000000..10562bd --- /dev/null +++ b/src/base/string/raw/copy.c @@ -0,0 +1,9 @@ +char * +str·copy(char *dst, char *src) +{ + while(*src) + *dst++ = *src++; + + *dst = 0; + return dst; +} |