diff options
author | Austin Clements <[email protected]> | 2009-10-07 12:05:56 -0400 |
---|---|---|
committer | Austin Clements <[email protected]> | 2009-10-07 12:05:56 -0400 |
commit | 6639ce56d986cdae197e4f013dde536178ad23f8 (patch) | |
tree | ac619c6602c04cbdc27f701f9a2644377e63d1dc /string.c | |
parent | 77a9aa55cd0c18ef33ebfa484b534511af4af53d (diff) | |
download | xv6-labs-6639ce56d986cdae197e4f013dde536178ad23f8.tar.gz xv6-labs-6639ce56d986cdae197e4f013dde536178ad23f8.tar.bz2 xv6-labs-6639ce56d986cdae197e4f013dde536178ad23f8.zip |
Provide memcpy for compatibility with older versions of gcc
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -44,6 +44,12 @@ memmove(void *dst, const void *src, uint n) return dst; } +void* +memcpy(void *dst, const void *src, uint n) +{ + return memmove(dst, src, n); +} + int strncmp(const char *p, const char *q, uint n) { |