summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/libc/string.c')
-rw-r--r--payloads/libpayload/libc/string.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/string.c b/payloads/libpayload/libc/string.c
index 2e0a558b20..8c6ea99115 100644
--- 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