Removed unused code since memcpy is available.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head r14.1.0
Michele Calgaro 3 years ago
parent 1e4c04def5
commit 0f92944b23
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -459,35 +459,6 @@ strrchr(str, ch)
# endif # endif
#endif #endif
/* NOTE: Neither bcopy nor the memcpy implementation below can
reliably handle copying in overlapping areas of memory, so
do not rely on this behavior when invoking memcpy later. */
#if ! HAVE_MEMCPY
# if HAVE_BCOPY
# define memcpy(dest, src, size) bcopy (src, dest, size)
# else
# define memcpy rpl_memcpy
static inline char *
memcpy (dest, src, size)
char *dest;
const char *src;
size_t size;
{
size_t i = 0;
for (i = 0; i < size; ++i)
{
dest[i] = src[i];
}
return dest;
}
# endif
#endif
/* According to Alexandre Oliva <oliva@lsd.ic.unicamp.br>, /* According to Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
``realloc is not entirely portable'' ``realloc is not entirely portable''
In any case we want to use the allocator supplied by the user without In any case we want to use the allocator supplied by the user without

Loading…
Cancel
Save