diff options
| author | tshiozak <tshiozak@NetBSD.org> | 2003-03-11 09:21:22 +0000 |
|---|---|---|
| committer | tshiozak <tshiozak@NetBSD.org> | 2003-03-11 09:21:22 +0000 |
| commit | 3f9925f700d60223c443f05ddb5c78ea940492a2 (patch) | |
| tree | 41af79c9a30ab6a28b5181ba0e5b5bac69e48a30 /include/inttypes.h | |
| parent | 664f01402c5155ad846ede1d764f903ca0b2a1f6 (diff) | |
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.
Diffstat (limited to 'include/inttypes.h')
| -rw-r--r-- | include/inttypes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/inttypes.h b/include/inttypes.h index da98212c2d8..590ec751f4c 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -1,4 +1,4 @@ -/* $NetBSD: inttypes.h,v 1.1 2001/04/28 15:41:28 kleink Exp $ */ +/* $NetBSD: inttypes.h,v 1.2 2003/03/11 09:21:22 tshiozak Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -41,12 +41,17 @@ #include <sys/cdefs.h> #include <sys/inttypes.h> +#include <wchar.h> __BEGIN_DECLS intmax_t strtoimax __P((const char * __restrict, char ** __restrict, int)); uintmax_t strtoumax __P((const char * __restrict, char ** __restrict, int)); +intmax_t wcstoimax __P((const wchar_t * __restrict, + wchar_t ** __restrict, int)); +uintmax_t wcstoumax __P((const wchar_t * __restrict, + wchar_t ** __restrict, int)); __END_DECLS #endif /* !_INTTYPES_H_ */ |
