summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/string.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/libc/string.c b/libc/string.c
index 199878e3..8f62bd7b 100644
--- a/libc/string.c
+++ b/libc/string.c
@@ -346,27 +346,6 @@ int memcmp(const void * cs,const void * ct,size_t count)
return res;
}
-/**
- * memchr - Find a character in an area of memory.
- * @s: The memory area
- * @c: The byte to search for
- * @n: The size of the area.
- *
- * returns the address of the first occurrence of @c, or %NULL
- * if @c is not found
- */
-void *memchr(const void *s, int c, size_t n)
-{
- const unsigned char *p = s;
- while (n-- != 0) {
- if ((unsigned char)c == *p++) {
- return (void *)(p-1);
- }
- }
- return NULL;
-}
-
-
char *
strdup( const char *str )
{