From fa5a15eeb283a27ea4f03ee581856930e60a7ca0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 24 Aug 2001 21:05:39 +0000 Subject: atoi, atol, atoll, and atof are supposed to be functions, not macros. -Erik --- libc/stdlib/strto_ll.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libc/stdlib/strto_ll.c') diff --git a/libc/stdlib/strto_ll.c b/libc/stdlib/strto_ll.c index e127b181d..c3a5439b3 100644 --- a/libc/stdlib/strto_ll.c +++ b/libc/stdlib/strto_ll.c @@ -190,3 +190,13 @@ long long strtoll(const char *str, char **endptr, int base) } #endif + +#ifdef L_atoll +long long atoll(const char *str) +{ + return(_strto_ll((str),(char**)0,10,0)); +} +#endif + + + -- cgit v1.2.3