diff options
Diffstat (limited to 'missing/memcpy.c')
-rw-r--r-- | missing/memcpy.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/missing/memcpy.c b/missing/memcpy.c new file mode 100644 index 00000000..3c4accdf --- /dev/null +++ b/missing/memcpy.c @@ -0,0 +1,18 @@ +/* + * memcpy --- copy strings. + * + * We supply this routine for those systems that aren't standard yet. + */ + +char * +memcpy (dest, src, l) +register char *dest, *src; +register int l; +{ + register char *ret = dest; + + while (l--) + *dest++ = *src++; + + return ret; +} |