From 00de59a632eecc23a5eb1ddbadb8a770cd481f43 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 11 Feb 1997 04:45:23 +0000 Subject: update from main archive 970210 1997-02-11 05:27 Ulrich Drepper * locale/weight.h (collate_rules): It's an u_int32_t array. (get_weight): Compute initial SLOT value correctly. 1997-02-10 17:45 Ulrich Drepper * string/argz-ctsep.c: Initialize *LEN when successful. * libio/vsnprintf.c: If MAXLEN is 0 return 0. * stdio/vsnprintf.c: Likewise. Reported by Philip Blundell . 1997-02-06 13:49 Andreas Schwab * rellns-sh: No need to check for existance of first parameter. --- stdlib/atoll.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 stdlib/atoll.c (limited to 'stdlib') diff --git a/stdlib/atoll.c b/stdlib/atoll.c new file mode 100644 index 0000000..dd387b9 --- /dev/null +++ b/stdlib/atoll.c @@ -0,0 +1,29 @@ +/* Copyright (C) 1991, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include + +#undef atol + + +/* Convert a string to a long int. */ +long long int +atoll (const char *nptr) +{ + return strtoll (nptr, (char **) NULL, 10); +} -- cgit v1.1