From 1025f3afc85be633451c4312ab26d179d47132e5 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 16 Sep 2011 02:18:56 -0700 Subject: Add an implementation for the memchr library function Change-Id: Icded479d246f7cce8a3d2154c69f75178fa513e1 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/708 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) Reviewed-by: Mathias Krause --- src/include/string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/string.h b/src/include/string.h index 21689473ce..708961b635 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -8,6 +8,7 @@ void *memcpy(void *dest, const void *src, size_t n); void *memmove(void *dest, const void *src, size_t n); void *memset(void *s, int c, size_t n); int memcmp(const void *s1, const void *s2, size_t n); +void *memchr(const void *s, int c, size_t n); #if !defined(__PRE_RAM__) int sprintf(char * buf, const char *fmt, ...); #endif -- cgit v1.2.3