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>
This commit is contained in:
Yuji Sasaki
2019-06-12 17:42:19 -07:00
committed by Martin Roth
parent e2c24f783d
commit 6b212d8fcf
2 changed files with 55 additions and 0 deletions

View File

@ -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.