From 9f7b74c64bf2730c2a23e66693b49bd98e5bf28b Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 2 Mar 2019 15:02:56 -0500 Subject: add documentation --- src/stdlib/atoll.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 +/** 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) */ -- cgit v1.2.1