From 2f209e7d2884f9658a996adeb896233db9fecdad Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Mon, 15 Feb 2016 16:00:37 -0800 Subject: kill libiberty --- libiberty/memchr.c | 60 ------------------------------------------------------ 1 file changed, 60 deletions(-) delete mode 100755 libiberty/memchr.c (limited to 'libiberty/memchr.c') diff --git a/libiberty/memchr.c b/libiberty/memchr.c deleted file mode 100755 index cce3003..0000000 --- a/libiberty/memchr.c +++ /dev/null @@ -1,60 +0,0 @@ -/* -FUNCTION - <>---find character in memory - -INDEX - memchr - -ANSI_SYNOPSIS - #include - void *memchr(const void *<[src]>, int <[c]>, size_t <[length]>); - -TRAD_SYNOPSIS - #include - void *memchr(<[src]>, <[c]>, <[length]>) - void *<[src]>; - void *<[c]>; - size_t <[length]>; - -DESCRIPTION - This function searches memory starting at <<*<[src]>>> for the - character <[c]>. The search only ends with the first - occurrence of <[c]>, or after <[length]> characters; in - particular, <> does not terminate the search. - -RETURNS - If the character <[c]> is found within <[length]> characters - of <<*<[src]>>>, a pointer to the character is returned. If - <[c]> is not found, then <> is returned. - -PORTABILITY -<> requires no supporting OS subroutines. - -QUICKREF - memchr ansi pure - -*/ - -#include -#ifdef __STDC__ -#include -#else -#define size_t unsigned long -#endif - -PTR -memchr (src_void, c, length) - register const PTR src_void; - int c; - size_t length; -{ - const unsigned char *src = (const unsigned char *)src_void; - - while (--length >= 0) - { - if (*src == c) - return (PTR)src; - src++; - } - return NULL; -} -- cgit v1.2.3