wcstoll.c revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
a4544a5a0e622ef69e38641f87ab1b5685e05911Phill Cunnington/** @file
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster This program and the accompanying materials
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster are licensed and made available under the terms and conditions of the BSD License
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster which accompanies this distribution. The full text of the license may be found at
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster http://opensource.org/licenses/bsd-license.php
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Copyright (c)2003 Citrus Project,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Redistribution and use in source and binary forms, with or without
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster modification, are permitted provided that the following conditions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster are met:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster 1. Redistributions of source code must retain the above copyright
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster notice, this list of conditions and the following disclaimer.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster 2. Redistributions in binary form must reproduce the above copyright
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster notice, this list of conditions and the following disclaimer in the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster documentation and/or other materials provided with the distribution.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey SUCH DAMAGE.
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey NetBSD: wcstoll.c,v 1.2 2004/06/21 21:20:43 itojun Exp
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey */
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey#include <LibConfig.h>
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey#include <sys/EfiCdefs.h>
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey#if defined(LIBC_SCCS) && !defined(lint)
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey__RCSID("$NetBSD: wcstoll.c,v 1.2 2004/06/21 21:20:43 itojun Exp $");
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey#endif /* LIBC_SCCS and not lint */
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey#include <assert.h>
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey#include <ctype.h>
700d97c43ad6de7d55777ece6ca26a6c8cc8fa48Tom Rumsey#include <errno.h>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#include <limits.h>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#include <stdlib.h>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#include <wchar.h>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#include <wctype.h>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#include "__wctoint.h"
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#define _FUNCNAME wcstoll
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#define __wINT /* LONGLONG */ long long int
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#define __wINT_MIN LLONG_MIN
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#define __wINT_MAX LLONG_MAX
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#include "_wcstol.h"
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster