fdl.texi from gnustandards
[gnulib.git] / lib / atoll.c
1 /* Copyright (C) 1991, 1997, 1998, 2008, 2009, 2010 Free Software Foundation,
2    Inc.
3    This file is part of the GNU C Library.
4
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 3 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
17
18 #if !_LIBC
19 # include <config.h>
20 #endif
21
22 /* Specification.  */
23 #include <stdlib.h>
24
25 #if _LIBC
26 # undef atoll
27 #endif
28
29
30 /* Convert a string to a long long int.  */
31 long long int
32 atoll (const char *nptr)
33 {
34   return strtoll (nptr, (char **) NULL, 10);
35 }