aboutsummaryrefslogtreecommitdiff
path: root/src/include/string.h
diff options
context:
space:
mode:
authorYuji Sasaki <sasakiy@chromium.org>2019-06-12 17:42:19 -0700
committerMartin Roth <martinroth@google.com>2019-08-10 01:32:19 +0000
commit6b212d8fcff125a831c0ba068903afd0b22d292c (patch)
tree4b9bc204291f383a17a8a176190a8c3bf9bd39c5 /src/include/string.h
parente2c24f783d78c582fb56625768b9ac424b5943c9 (diff)
string: implement strspn, strcspn, atol
Change-Id: Id8fa880357124b620bde8884949bd8ffff7d0762 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34450 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/include/string.h')
-rw-r--r--src/include/string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/string.h b/src/include/string.h
index 30241303eb..d3f09ff102 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -32,6 +32,9 @@ char *strncpy(char *to, const char *from, int count);
char *strcpy(char *dst, const char *src);
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);
+long atol(const char *str);
/**
* Find a character in a string.