]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Locale/wcstoll.c
Standard Libraries for EDK II.
[mirror_edk2.git] / StdLib / LibC / Locale / wcstoll.c
CommitLineData
2aa62f2b 1/** @file\r
2 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
3 This program and the accompanying materials\r
4 are licensed and made available under the terms and conditions of the BSD License\r
5 which accompanies this distribution. The full text of the license may be found at\r
6 http://opensource.org/licenses/bsd-license.php\r
7\r
8 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
9 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
10\r
11 Copyright (c)2003 Citrus Project,\r
12 All rights reserved.\r
13\r
14 Redistribution and use in source and binary forms, with or without\r
15 modification, are permitted provided that the following conditions\r
16 are met:\r
17 1. Redistributions of source code must retain the above copyright\r
18 notice, this list of conditions and the following disclaimer.\r
19 2. Redistributions in binary form must reproduce the above copyright\r
20 notice, this list of conditions and the following disclaimer in the\r
21 documentation and/or other materials provided with the distribution.\r
22\r
23 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
24 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
25 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
26 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
27 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
28 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
29 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
30 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
31 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
32 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
33 SUCH DAMAGE.\r
34\r
35 NetBSD: wcstoll.c,v 1.2 2004/06/21 21:20:43 itojun Exp\r
36 */\r
37#include <LibConfig.h>\r
38#include <sys/EfiCdefs.h>\r
39#if defined(LIBC_SCCS) && !defined(lint)\r
40__RCSID("$NetBSD: wcstoll.c,v 1.2 2004/06/21 21:20:43 itojun Exp $");\r
41#endif /* LIBC_SCCS and not lint */\r
42\r
43#include <assert.h>\r
44#include <ctype.h>\r
45#include <errno.h>\r
46#include <limits.h>\r
47#include <stdlib.h>\r
48#include <wchar.h>\r
49#include <wctype.h>\r
50\r
51#include "__wctoint.h"\r
52\r
53#define _FUNCNAME wcstoll\r
54#define __wINT /* LONGLONG */ long long int\r
55#define __wINT_MIN LLONG_MIN\r
56#define __wINT_MAX LLONG_MAX\r
57\r
58#include "_wcstol.h"\r