[BACK]Return to wcstoull.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / locale

File: [cvs.NetBSD.org] / src / lib / libc / locale / wcstoull.c (download)

Revision 1.1, Tue Mar 11 09:21:24 2003 UTC (17 years, 2 months ago) by tshiozak
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2

add wcstoll, wcstoimax, wcstoull and wcstoumax. (lib/20656)
  - these are defined in C99 (wcsto[ui]max) and SUSv3.
  - these implementations are written by sigsegv@s25.xrea.com,
    derived from NetBSD's wcstol/wcstoul.
  - I just added some comments.

/*	$NetBSD: wcstoull.c,v 1.1 2003/03/11 09:21:24 tshiozak Exp $	*/

#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: wcstoull.c,v 1.1 2003/03/11 09:21:24 tshiozak Exp $");
#endif /* LIBC_SCCS and not lint */

#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <wchar.h>
#include <wctype.h>

#include "__wctoint.h"

#define	_FUNCNAME	wcstoull
#define	__UINT		/* LONGLONG */ unsigned long long int
#define	__UINT_MAX	ULLONG_MAX

#include "_wcstoul.h"