projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(EXTRA_DIST): Remove names of several files
[gnulib.git]
/
lib
/
memcpy.c
diff --git
a/lib/memcpy.c
b/lib/memcpy.c
index
aec71e3
..
437f622
100644
(file)
--- a/
lib/memcpy.c
+++ b/
lib/memcpy.c
@@
-2,13
+2,8
@@
if the source overlaps with the destination.
Return DESTADDR. */
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))
+#ifdef HAVE_CONFIG_H
+# include <config.h>
#endif
char *
#endif
char *
@@
-19,10
+14,6
@@
memcpy (destaddr, srcaddr, len)
{
char *dest = destaddr;
{
char *dest = destaddr;
- assert (len >= 0);
- /* Make sure they don't overlap. */
- assert (ABS (destaddr - srcaddr) >= len);
-
while (len-- > 0)
*destaddr++ = *srcaddr++;
return dest;
while (len-- > 0)
*destaddr++ = *srcaddr++;
return dest;