summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorrtm <rtm>2006-08-30 18:55:06 +0000
committerrtm <rtm>2006-08-30 18:55:06 +0000
commit2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e (patch)
tree63446e3d197769ba44a9e32a30a284327ec93af8 /string.c
parent18432ed5edaeb2a6ffd91f557880c277d96784c1 (diff)
downloadxv6-labs-2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e.tar.gz
xv6-labs-2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e.tar.bz2
xv6-labs-2aa4c3bc29b67dcc4810aca96fd0ae8aa7c32b5e.zip
complain if no disk 1
lots of cleanup
Diffstat (limited to 'string.c')
-rw-r--r--string.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/string.c b/string.c
index 98253ed..10ea805 100644
--- a/string.c
+++ b/string.c
@@ -57,21 +57,3 @@ strncmp(const char *p, const char *q, uint n)
else
return (int) ((uchar) *p - (uchar) *q);
}
-
-// Memcpy is deprecated and should NOT be called.
-// Use memmove instead, which has defined semantics
-// when the two memory ranges overlap.
-// Memcpy is here only because gcc compiles some
-// structure assignments into calls to memcpy.
-void *
-memcpy(void *dst, void *src, uint n)
-{
- char *d = (char *) dst;
- char *s = (char *) src;
-
- while(n-- > 0)
- *d++ = *s++;
-
- return dst;
-}
-