diff options
author | Jim Meyering <jim@meyering.net> | 1996-10-04 13:42:43 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-10-04 13:42:43 +0000 |
commit | b350b74916c0b67e3020b345b9064d962791490a (patch) | |
tree | 307a987e720f41a0ad4a13fff9195ff25bc85768 /lib | |
parent | 3400ffe3f22fa55d22be79288075a3de2238a6d1 (diff) | |
download | coreutils-b350b74916c0b67e3020b345b9064d962791490a.tar.xz |
Remove assertions.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/memcpy.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/memcpy.c b/lib/memcpy.c index aec71e36b..dba7d56f1 100644 --- a/lib/memcpy.c +++ b/lib/memcpy.c @@ -2,15 +2,6 @@ if the source overlaps with the destination. Return DESTADDR. */ -#include <assert.h> - -/* FIXME: uncomment the following for releases. */ -#define NDEBUG 1 - -#ifndef ABS -# define ABS(x) ((x) < 0 ? (-(x)) : (x)) -#endif - char * memcpy (destaddr, srcaddr, len) char *destaddr; @@ -19,10 +10,6 @@ memcpy (destaddr, srcaddr, len) { char *dest = destaddr; - assert (len >= 0); - /* Make sure they don't overlap. */ - assert (ABS (destaddr - srcaddr) >= len); - while (len-- > 0) *destaddr++ = *srcaddr++; return dest; |