From 18bc92cb83fdf0f0472432fb7c30914a9cd4df01 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Mar 2015 21:08:54 -0400 Subject: libiberty: remove source files that either duplicate functionality already present in all modern libc implementations, or are incompatible with modern development environments, or both. --- libiberty/memset.c | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 libiberty/memset.c (limited to 'libiberty/memset.c') diff --git a/libiberty/memset.c b/libiberty/memset.c deleted file mode 100644 index 476668961..000000000 --- a/libiberty/memset.c +++ /dev/null @@ -1,26 +0,0 @@ -/* memset - This implementation is in the public domain. */ - -/* - -@deftypefn Supplemental void* memset (void *@var{s}, int @var{c}, @ - size_t @var{count}) - -Sets the first @var{count} bytes of @var{s} to the constant byte -@var{c}, returning a pointer to @var{s}. - -@end deftypefn - -*/ - -#include -#include - -PTR -memset (PTR dest, register int val, register size_t len) -{ - register unsigned char *ptr = (unsigned char*)dest; - while (len-- > 0) - *ptr++ = val; - return dest; -} -- cgit v1.2.3