diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-03-02 15:02:56 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-03-02 15:02:56 -0500 |
commit | 9f7b74c64bf2730c2a23e66693b49bd98e5bf28b (patch) | |
tree | 87e8cd7b10ee3a3da504f04ed03f0b2b2c7b5173 /src/stdlib | |
parent | 50b9a2e4a625d43c199ad3c471d96311d36fb7b0 (diff) |
add documentation
Diffstat (limited to 'src/stdlib')
-rw-r--r-- | src/stdlib/atoll.c | 9 |
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) */ |