Change-Id: I807ca061115146a6851eef481eb881b279fba8e1
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/86
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
--- /dev/null
+#include <stdlib.h>
*/
long int strtol(const char *s, char **nptr, int base);
unsigned long int strtoul(const char *s, char **nptr, int base);
+long atol(const char *nptr);
/** @} */
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