From 683ac6f204a8ae464a7f671b53084c99a0abce45 Mon Sep 17 00:00:00 2001 From: Jes Klinke Date: Fri, 31 Jul 2020 09:58:49 -0700 Subject: lib/string: Add standard strstr() function Adding implementation of standard library strstr() See https://review.coreboot.org/c/coreboot/+/43741 for context. Change-Id: I63e26e98ed2dd15542f81c0a3a5e353bb93b7350 Signed-off-by: jbk@chromium.org Reviewed-on: https://review.coreboot.org/c/coreboot/+/44085 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- 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 8eef0680cb..3cfa18d33c 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -29,6 +29,7 @@ int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, int maxlen); int strspn(const char *str, const char *spn); int strcspn(const char *str, const char *spn); +char *strstr(const char *haystack, const char *needle); char *strtok_r(char *str, const char *delim, char **ptr); char *strtok(char *str, const char *delim); long atol(const char *str); -- cgit v1.2.3