summaryrefslogtreecommitdiff
path: root/include/wchar.h
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2011-10-16 13:20:52 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2011-10-16 13:20:52 +0000
commitf30a2a52ed0b737d6beb7b1c5c4f411bea21bae4 (patch)
tree6b84a1bbf783aeb9b4591abafb4c394349f199e6 /include/wchar.h
parent70a92ca001f3c5ac3ad8aaaa1d08cbe3848aa2e4 (diff)
Add wscanf(3) and friends. Based on our scanf(3) implementation, with wide
character support changes based on code from FreeBSD. ok espie guenther; man page help from schwarze
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 026e4cff315..5570a34284d 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wchar.h,v 1.19 2011/07/04 04:37:34 nicm Exp $ */
+/* $OpenBSD: wchar.h,v 1.20 2011/10/16 13:20:51 stsp Exp $ */
/* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */
/*-
@@ -188,6 +188,13 @@ int vswprintf(wchar_t * __restrict, size_t, const wchar_t * __restrict,
int vwprintf(const wchar_t * __restrict, __va_list);
int wprintf(const wchar_t * __restrict, ...);
+int fwscanf(FILE * __restrict, const wchar_t * __restrict, ...);
+int swscanf(const wchar_t * __restrict, const wchar_t * __restrict, ...);
+int vfwscanf(FILE * __restrict, const wchar_t * __restrict, __va_list);
+int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict, __va_list);
+int vwscanf(const wchar_t * __restrict, __va_list);
+int wscanf(const wchar_t * __restrict, ...);
+
#define getwc(f) fgetwc(f)
#define getwchar() getwc(stdin)
#define putwc(wc, f) fputwc((wc), (f))