summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorharshit <harshitsharmajs@gmail.com>2020-05-15 10:40:02 +0530
committerPatrick Georgi <pgeorgi@google.com>2020-05-28 09:52:51 +0000
commit7a6f27ce1ed8ad535aaff13cc36af30b228556cc (patch)
tree776cec026f5ed3838354c2c0401f4093a47e005b /src/include
parent58b8054ccacd0877bd52b640c7938f7582f6d69a (diff)
lib: Add strtok() and strtok_r()
Add strtok() and strtok_r() to the library. Signed-off-by: Harshit Sharma <harshitsharmajs@gmail.com> Change-Id: Ic855b31669be1c274cbf247c53ffa6f74ec5bf35 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41420 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/string.h2
1 files changed, 2 insertions, 0 deletions
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);
/**