projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libpayload: Provide atol(), malloc.h
[coreboot.git]
/
payloads
/
libpayload
/
libc
/
string.c
diff --git
a/payloads/libpayload/libc/string.c
b/payloads/libpayload/libc/string.c
index 2e0a558b20c3a89d2f134ca40f67d74183bc6826..8c6ea99115d3dcef0286656e751bb8f3c7927b13 100644
(file)
--- a/
payloads/libpayload/libc/string.c
+++ b/
payloads/libpayload/libc/string.c
@@
-473,6
+473,11
@@
long int strtol(const char *ptr, char **endptr, int base)
return ret * negative;
}
+long atol(const char *nptr)
+{
+ return strtol(nptr, NULL, 10);
+}
+
/**
* Convert the initial portion of a string into an unsigned int
* @param ptr A pointer to the string to convert