summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2011-09-16 02:18:56 -0700
committerMathias Krause <minipli@googlemail.com>2012-03-09 20:00:53 +0100
commit1025f3afc85be633451c4312ab26d179d47132e5 (patch)
treea43a5caf546a5617aa9fe7a1007f2abd2e4ec2c8 /src/include
parent8ebd11eab999654873010e706b95e5fe5855ea64 (diff)
downloadcoreboot-1025f3afc85be633451c4312ab26d179d47132e5.tar.xz
Add an implementation for the memchr library function
Change-Id: Icded479d246f7cce8a3d2154c69f75178fa513e1 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://review.coreboot.org/708 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins) Reviewed-by: Mathias Krause <minipli@googlemail.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/string.h1
1 files changed, 1 insertions, 0 deletions
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