From 7a6f27ce1ed8ad535aaff13cc36af30b228556cc Mon Sep 17 00:00:00 2001 From: harshit Date: Fri, 15 May 2020 10:40:02 +0530 Subject: lib: Add strtok() and strtok_r() Add strtok() and strtok_r() to the library. Signed-off-by: Harshit Sharma Change-Id: Ic855b31669be1c274cbf247c53ffa6f74ec5bf35 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41420 Tested-by: build bot (Jenkins) Reviewed-by: Werner Zeh --- src/include/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/string.h b/src/include/string.h index f923ca5c02..8eef0680cb 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -29,6 +29,8 @@ 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 *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