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