summaryrefslogtreecommitdiff
path: root/src/stdlib/atoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/atoll.c')
-rw-r--r--src/stdlib/atoll.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stdlib/atoll.c b/src/stdlib/atoll.c
index 0e79ef49..d10cb5ed 100644
--- a/src/stdlib/atoll.c
+++ b/src/stdlib/atoll.c
@@ -1,10 +1,19 @@
#include <stdlib.h>
+/** convert string to long long integer **/
+
long long int atoll(const char *nptr)
{
return strtoll(nptr, (char**)NULL, 10);
}
+/***
+converts the string at ARGUMENT(nptr) to a TYPE(long long int) value,
+using base 10. The conversion goes until the first non-digit character.
+***/
+
/*
+LC_CTYPE
+RETURN_SUCCESS(the converted value)
STDC(199901)
*/