diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-12-30 03:34:46 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-12-30 03:34:46 +0000 |
| commit | f7388e0d3854026958e676c31ab50dc06e797f08 (patch) | |
| tree | 4aa0c4f3355219f0fd3e65a25e922b69f3f9523e /lib/libc/stdlib/atoll.c | |
| parent | 236f9adc7826e5c51300de4a7093082695ca0704 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/atoll.c')
| -rw-r--r-- | lib/libc/stdlib/atoll.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/libc/stdlib/atoll.c b/lib/libc/stdlib/atoll.c index c0a7212f5106..a3c15a2410d8 100644 --- a/lib/libc/stdlib/atoll.c +++ b/lib/libc/stdlib/atoll.c @@ -33,18 +33,11 @@ * $FreeBSD$ */ -#include <errno.h> #include <stdlib.h> long long atoll(str) const char *str; { - long long r; - int saverr; - - saverr = errno; - r = strtoll(str, (char **)NULL, 10); - errno = saverr; - return r; + return strtoll(str, (char **)NULL, 10); } |
